* resolv/res_send.c (send_dg): On timeout, only return nonzero
authorUlrich Drepper <drepper@redhat.com>
Thu, 30 Oct 2008 16:00:44 +0000 (16:00 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 30 Oct 2008 16:00:44 +0000 (16:00 +0000)
result if any of the queries really provided an answer.

ChangeLog
resolv/res_send.c

index 0b3f629..4decd23 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-30  Ulrich Drepper  <drepper@redhat.com>
+
+       * resolv/res_send.c (send_dg): On timeout, only return nonzero
+       result if any of the queries really provided an answer.
+
 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
 
        * po/lt.po: Update from translation team.
index 59cdc21..7c3d620 100644 (file)
@@ -1008,7 +1008,7 @@ send_dg(res_state statp,
        }
        if (n == 0) {
                Dprint(statp->options & RES_DEBUG, (stdout, ";; timeout\n"));
-               if (recvresp1 || (buf2 != NULL && recvresp2))
+               if (recvresp1 > 1 || (buf2 != NULL && recvresp2 > 1))
                  {
                    *resplen2 = 1;
                    return resplen;