update from main archive 961010
authordrepper <drepper>
Fri, 11 Oct 1996 03:10:46 +0000 (03:10 +0000)
committerdrepper <drepper>
Fri, 11 Oct 1996 03:10:46 +0000 (03:10 +0000)
nss/nss_dns/dns-host.c

index f8d5d37..1209230 100644 (file)
@@ -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;