summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-04-03 05:53:24 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-04-03 05:53:24 +0000
commitd3f8b71c4284c311ae677402040872e857bf2799 (patch)
tree141a46771c8bc3889791132e1817004cf473f8bf /lib/libc
parentfd60cb774e55dfe68c1ac743625b9a458a9fb526 (diff)
if dns lookup fails, still honour _res.lookups[]
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/net/gethostnamadr.c4
1 files 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 <sys/param.h>
@@ -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() */