From 2c589c203f1bee852a55bbcd38dccba1a2887337 Mon Sep 17 00:00:00 2001 From: deraadt Date: Thu, 3 Apr 1997 05:53:23 +0000 Subject: [PATCH] if dns lookup fails, still honour _res.lookups[] --- lib/libc/net/gethostnamadr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() */ -- 2.20.1