aboutsummaryrefslogtreecommitdiff
path: root/nss/nss_dns
diff options
context:
space:
mode:
Diffstat (limited to 'nss/nss_dns')
-rw-r--r--nss/nss_dns/dns-host.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/nss/nss_dns/dns-host.c b/nss/nss_dns/dns-host.c
index f8d5d37..1209230 100644
--- a/nss/nss_dns/dns-host.c
+++ b/nss/nss_dns/dns-host.c
@@ -589,15 +589,12 @@ getanswer_r (const querybuf *answer, int anslen, const char *qname, int qtype,
cp += n;
continue; /* XXX - had_error++ ? */
}
- if (haveanswer)
+ if (n != result->h_length)
{
- if (n != result->h_length)
- {
- cp += n;
- continue;
- }
+ cp += n;
+ continue;
}
- else
+ if (!haveanswer)
{
register int nn;