This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][BZ #11950] res_send fails with ETIMEDOUT on successful DNS UPDATE.


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"),


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]