mirror of git://sourceware.org/git/glibc.git
Handle SERVFAIL, NOTIMP, REFUSED replies from DNS server better.
When doing IPv4+6 lookups we have to pass up the error record from send_dg.
This commit is contained in:
parent
889f847e4a
commit
e28b969b49
|
|
@ -1,5 +1,9 @@
|
||||||
2009-07-26 Ulrich Drepper <drepper@redhat.com>
|
2009-07-26 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
[BZ #10452]
|
||||||
|
* resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
|
||||||
|
replies up.
|
||||||
|
|
||||||
* elf/elf.h: Define NT_GNU_GOLD_VERSION.
|
* elf/elf.h: Define NT_GNU_GOLD_VERSION.
|
||||||
|
|
||||||
2009-07-25 Ulrich Drepper <drepper@redhat.com>
|
2009-07-25 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
|
||||||
|
|
@ -1278,14 +1278,10 @@ send_dg(res_state statp,
|
||||||
? *thisanssiz : *thisresplen);
|
? *thisanssiz : *thisresplen);
|
||||||
|
|
||||||
if (recvresp1 || (buf2 != NULL && recvresp2))
|
if (recvresp1 || (buf2 != NULL && recvresp2))
|
||||||
{
|
return resplen;
|
||||||
*resplen2 = 1;
|
|
||||||
return resplen;
|
|
||||||
}
|
|
||||||
if (buf2 != NULL)
|
if (buf2 != NULL)
|
||||||
{
|
{
|
||||||
/* We are waiting for a possible second reply. */
|
/* We are waiting for a possible second reply. */
|
||||||
resplen = 1;
|
|
||||||
if (hp->id == anhp->id)
|
if (hp->id == anhp->id)
|
||||||
recvresp1 = 1;
|
recvresp1 = 1;
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue