* resolv/res_send.c (send_dg): Don't switch into single-request

mode if we already are in it.
This commit is contained in:
Ulrich Drepper 2009-04-16 14:29:34 +00:00
parent e775ec11c4
commit d0e81f10e5
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-04-16 Ulrich Drepper <drepper@redhat.com>
* resolv/res_send.c (send_dg): Don't switch into single-request
mode if we already are in it.
2009-04-15 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there

View File

@ -1048,7 +1048,9 @@ send_dg(res_state statp,
}
if (n == 0) {
Dprint(statp->options & RES_DEBUG, (stdout, ";; timeout\n"));
if (resplen > 1 && (recvresp1 || (buf2 != NULL && recvresp2)))
if (!single_request
&& resplen > 1
&& (recvresp1 || (buf2 != NULL && recvresp2)))
{
/* There are quite a few broken name servers out
there which don't handle two outstanding