Skip to content

Commit

Permalink
Handle SERVFAIL, NOTIMP, REFUSED replies from DNS server better.
Browse files Browse the repository at this point in the history
When doing IPv4+6 lookups we have to pass up the error record from
send_dg.
  • Loading branch information
Ulrich Drepper committed Jul 26, 2009
1 parent 889f847 commit e28b969
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
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.

2009-07-25 Ulrich Drepper <drepper@redhat.com>
Expand Down
6 changes: 1 addition & 5 deletions resolv/res_send.c
Original file line number Diff line number Diff line change
Expand Up @@ -1278,14 +1278,10 @@ send_dg(res_state statp,
? *thisanssiz : *thisresplen);

if (recvresp1 || (buf2 != NULL && recvresp2))
{
*resplen2 = 1;
return resplen;
}
return resplen;
if (buf2 != NULL)
{
/* We are waiting for a possible second reply. */
resplen = 1;
if (hp->id == anhp->id)
recvresp1 = 1;
else
Expand Down

0 comments on commit e28b969

Please sign in to comment.