diff options
author | Jakub Jelinek <jakub@redhat.com> | 2005-07-08 09:10:42 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2005-07-08 09:10:42 +0000 |
commit | 48f006fc656c70757103dc9efa92d5775717576b (patch) | |
tree | 49d57e1205b93471c3245fceab5dd5ac31ba743d /resolv | |
parent | 03d65262fdcc287ef8b691c7dff2f1a63cdd13c2 (diff) | |
download | glibc-48f006fc656c70757103dc9efa92d5775717576b.tar.gz glibc-48f006fc656c70757103dc9efa92d5775717576b.tar.xz glibc-48f006fc656c70757103dc9efa92d5775717576b.zip |
Updated to fedora-glibc-20050708T0811
Diffstat (limited to 'resolv')
-rw-r--r-- | resolv/Depend | 1 | ||||
-rw-r--r-- | resolv/res_send.c | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/resolv/Depend b/resolv/Depend index fe673ba5ec..8d2587bbc1 100644 --- a/resolv/Depend +++ b/resolv/Depend @@ -1 +1,2 @@ linuxthreads +nptl diff --git a/resolv/res_send.c b/resolv/res_send.c index 1a53e5be9e..6f12b88d6f 100644 --- a/resolv/res_send.c +++ b/resolv/res_send.c @@ -1008,11 +1008,19 @@ send_dg(res_state statp, DprintQ(statp->options & RES_DEBUG, (stdout, "server rejected query:\n"), ans, (resplen > anssiz) ? anssiz : resplen); + next_ns: res_nclose(statp); /* don't retry if called from dig */ if (!statp->pfcode) return (0); } + if (anhp->rcode == NOERROR && anhp->ancount == 0 + && anhp->aa == 0 && anhp->ra == 0 && anhp->arcount == 0) { + DprintQ(statp->options & RES_DEBUG, + (stdout, "referred query:\n"), + ans, (resplen > anssiz) ? anssiz : resplen); + goto next_ns; + } if (!(statp->options & RES_IGNTC) && anhp->tc) { /* * To get the rest of answer, |