1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

* resolv/res_send.c (send_dg): On timeout, only return nonzero

result if any of the queries really provided an answer.
This commit is contained in:
Ulrich Drepper
2008-10-30 16:00:44 +00:00
parent 4caa3fb7c8
commit 21b07d8ba5
2 changed files with 6 additions and 1 deletions

View File

@ -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> 2008-10-28 Ulrich Drepper <drepper@redhat.com>
* po/lt.po: Update from translation team. * po/lt.po: Update from translation team.

View File

@ -1008,7 +1008,7 @@ send_dg(res_state statp,
} }
if (n == 0) { if (n == 0) {
Dprint(statp->options & RES_DEBUG, (stdout, ";; timeout\n")); Dprint(statp->options & RES_DEBUG, (stdout, ";; timeout\n"));
if (recvresp1 || (buf2 != NULL && recvresp2)) if (recvresp1 > 1 || (buf2 != NULL && recvresp2 > 1))
{ {
*resplen2 = 1; *resplen2 = 1;
return resplen; return resplen;