Skip to content

Commit

Permalink
* resolv/res_send.c (send_dg): On timeout, only return nonzero
Browse files Browse the repository at this point in the history
	result if any of the queries really provided an answer.
  • Loading branch information
Ulrich Drepper committed Oct 30, 2008
1 parent 4caa3fb commit 21b07d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion resolv/res_send.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 21b07d8

Please sign in to comment.