mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-18 14:40:06 +00:00
* resolv/res_send.c (send_dg): If we already have one of two
answers and the server reports SERVFAI, NOTIMP, or REFUSED, then use the one answer insted of failing.
This commit is contained in:
parent
acbb987309
commit
e200388380
@ -1,3 +1,9 @@
|
|||||||
|
2008-05-24 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* resolv/res_send.c (send_dg): If we already have one of two
|
||||||
|
answers and the server reports SERVFAI, NOTIMP, or REFUSED, then
|
||||||
|
use the one answer insted of failing.
|
||||||
|
|
||||||
2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
|
2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
|
||||||
|
|
||||||
* math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
|
* math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
|
||||||
|
@ -1001,12 +1001,12 @@ send_dg(res_state statp,
|
|||||||
need_recompute = 1;
|
need_recompute = 1;
|
||||||
}
|
}
|
||||||
if (n == 0) {
|
if (n == 0) {
|
||||||
Dprint(statp->options & RES_DEBUG, (stdout,
|
Dprint(statp->options & RES_DEBUG, (stdout, ";; timeout\n"));
|
||||||
";; timeout sending\n"));
|
if (recvresp1 || (buf2 != NULL && recvresp2))
|
||||||
if (recvresp1)
|
{
|
||||||
return resplen;
|
*resplen2 = 1;
|
||||||
if (buf2 != NULL && recvresp2)
|
return resplen;
|
||||||
return 1;
|
}
|
||||||
|
|
||||||
*gotsomewhere = 1;
|
*gotsomewhere = 1;
|
||||||
return (0);
|
return (0);
|
||||||
@ -1184,6 +1184,24 @@ send_dg(res_state statp,
|
|||||||
thisansp,
|
thisansp,
|
||||||
(*thisresplen > *thisanssiz)
|
(*thisresplen > *thisanssiz)
|
||||||
? *thisanssiz : *thisresplen);
|
? *thisanssiz : *thisresplen);
|
||||||
|
|
||||||
|
if (recvresp1 || (buf2 != NULL && recvresp2))
|
||||||
|
{
|
||||||
|
*resplen2 = 1;
|
||||||
|
return resplen;
|
||||||
|
}
|
||||||
|
if (buf2 != NULL)
|
||||||
|
{
|
||||||
|
/* We are waiting for a possible second reply. */
|
||||||
|
resplen = 1;
|
||||||
|
if (hp->id == anhp->id)
|
||||||
|
recvresp1 = 1;
|
||||||
|
else
|
||||||
|
recvresp2 = 1;
|
||||||
|
|
||||||
|
goto wait;
|
||||||
|
}
|
||||||
|
|
||||||
next_ns:
|
next_ns:
|
||||||
__res_iclose(statp, false);
|
__res_iclose(statp, false);
|
||||||
/* don't retry if called from dig */
|
/* don't retry if called from dig */
|
||||||
|
Loading…
Reference in New Issue
Block a user