From: deraadt Date: Thu, 3 Apr 1997 05:53:23 +0000 (+0000) Subject: if dns lookup fails, still honour _res.lookups[] X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2c589c203f1bee852a55bbcd38dccba1a2887337;p=openbsd if dns lookup fails, still honour _res.lookups[] --- diff --git a/lib/libc/net/gethostnamadr.c b/lib/libc/net/gethostnamadr.c index e26ae989c50..f1c34bce061 100644 --- a/lib/libc/net/gethostnamadr.c +++ b/lib/libc/net/gethostnamadr.c @@ -52,7 +52,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.16 1997/04/03 05:52:35 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.17 1997/04/03 05:53:23 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -669,7 +669,7 @@ gethostbyaddr(addr, len, af) if (_res.options & RES_DEBUG) printf("res_query failed\n"); #endif - return (NULL); + break; } if (!(hp = getanswer(&buf, n, qbuf, T_PTR))) return (NULL); /* h_errno was set by getanswer() */