diff options
author | deraadt <> | 1997-04-03 05:53:23 +0000 |
---|---|---|
committer | deraadt <> | 1997-04-03 05:53:23 +0000 |
commit | 6540682bde97dc36f8683d79562433cba7b0dc2d (patch) | |
tree | ceb5ea667442fb6a77378709e7864542a45ca741 /src/lib | |
parent | ab0aad2af12f864d48a64c7f39cdc2e1f6f7a9ee (diff) | |
download | openbsd-6540682bde97dc36f8683d79562433cba7b0dc2d.tar.gz openbsd-6540682bde97dc36f8683d79562433cba7b0dc2d.tar.bz2 openbsd-6540682bde97dc36f8683d79562433cba7b0dc2d.zip |
if dns lookup fails, still honour _res.lookups[]
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libc/net/gethostnamadr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/net/gethostnamadr.c b/src/lib/libc/net/gethostnamadr.c index e26ae989c5..f1c34bce06 100644 --- a/src/lib/libc/net/gethostnamadr.c +++ b/src/lib/libc/net/gethostnamadr.c | |||
@@ -52,7 +52,7 @@ | |||
52 | */ | 52 | */ |
53 | 53 | ||
54 | #if defined(LIBC_SCCS) && !defined(lint) | 54 | #if defined(LIBC_SCCS) && !defined(lint) |
55 | static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.16 1997/04/03 05:52:35 deraadt Exp $"; | 55 | static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.17 1997/04/03 05:53:23 deraadt Exp $"; |
56 | #endif /* LIBC_SCCS and not lint */ | 56 | #endif /* LIBC_SCCS and not lint */ |
57 | 57 | ||
58 | #include <sys/param.h> | 58 | #include <sys/param.h> |
@@ -669,7 +669,7 @@ gethostbyaddr(addr, len, af) | |||
669 | if (_res.options & RES_DEBUG) | 669 | if (_res.options & RES_DEBUG) |
670 | printf("res_query failed\n"); | 670 | printf("res_query failed\n"); |
671 | #endif | 671 | #endif |
672 | return (NULL); | 672 | break; |
673 | } | 673 | } |
674 | if (!(hp = getanswer(&buf, n, qbuf, T_PTR))) | 674 | if (!(hp = getanswer(&buf, n, qbuf, T_PTR))) |
675 | return (NULL); /* h_errno was set by getanswer() */ | 675 | return (NULL); /* h_errno was set by getanswer() */ |