[PATCH][BZ #11950] res_send fails with ETIMEDOUT on successful DNS UPDATE.
Ondřej Bílka
neleai@seznam.cz
Thu Oct 17 12:29:00 GMT 2013
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"),
More information about the Libc-alpha
mailing list