This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH][BZ #11950] res_send fails with ETIMEDOUT on successful DNS UPDATE.
- From: OndÅej BÃlka <neleai at seznam dot cz>
- To: libc-alpha at sourceware dot org
- Date: Thu, 17 Oct 2013 14:29:25 +0200
- Subject: Re: [PATCH][BZ #11950] res_send fails with ETIMEDOUT on successful DNS UPDATE.
- Authentication-results: sourceware.org; auth=none
- References: <20131008163113 dot GA12971 at domone dot podge>
ping
On Tue, Oct 08, 2013 at 06:31:13PM +0200, OndÅej BÃlka wrote:
> Hi,
>
> This is bug https://sourceware.org/bugzilla/show_bug.cgi?id=11950
> had a patch for three years and no discussion.
>
> A code changed in meantime, a closest equivalent now is patch below
> but I do not know if conditions added made added check retundant.
>
> Comments?
>
>
> * resolv/res_send.c: Handle DNS UPDATE.
>
> diff --git a/resolv/res_send.c b/resolv/res_send.c
> index 5a73696..7bbc74b 100644
> --- a/resolv/res_send.c
> +++ b/resolv/res_send.c
> @@ -1369,7 +1369,8 @@ send_dg(res_state statp,
> if (!statp->pfcode)
> return (0);
> }
> - if (anhp->rcode == NOERROR && anhp->ancount == 0
> + if (anhp->rcode == NOERROR && anhp->ancount == 0
> + && anhp->opcode != ns_o_update
> && anhp->aa == 0 && anhp->ra == 0 && anhp->arcount == 0) {
> DprintQ(statp->options & RES_DEBUG,
> (stdout, "referred query:\n"),