This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[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: Tue, 8 Oct 2013 18:31:13 +0200
- Subject: [PATCH][BZ #11950] res_send fails with ETIMEDOUT on successful DNS UPDATE.
- Authentication-results: sourceware.org; auth=none
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"),