]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Handle SERVFAIL, NOTIMP, REFUSED replies from DNS server better.
authorUlrich Drepper <drepper@redhat.com>
Sun, 26 Jul 2009 19:16:24 +0000 (12:16 -0700)
committerUlrich Drepper <drepper@redhat.com>
Sun, 26 Jul 2009 19:16:24 +0000 (12:16 -0700)
When doing IPv4+6 lookups we have to pass up the error record from
send_dg.

ChangeLog
resolv/res_send.c

index a49ccbfc97776bd69bdb9729d76c1c7af69b17a3..977f0f8936178108b9246cadcd4800dcb88a4079 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
 
+       [BZ #10452]
+       * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
+       replies up.
+
        * elf/elf.h: Define NT_GNU_GOLD_VERSION.
 
 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
index 971a4afb6f6e63458a720b7f5bd129a4b883c677..4c14db1bf5dceecc16c41aa54e103560f50d67f1 100644 (file)
@@ -1278,14 +1278,10 @@ send_dg(res_state statp,
                                ? *thisanssiz : *thisresplen);
 
                        if (recvresp1 || (buf2 != NULL && recvresp2))
-                         {
-                           *resplen2 = 1;
-                           return resplen;
-                         }
+                         return resplen;
                        if (buf2 != NULL)
                          {
                            /* We are waiting for a possible second reply.  */
-                           resplen = 1;
                            if (hp->id == anhp->id)
                              recvresp1 = 1;
                            else