summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-03-13 12:26:57 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-03-13 12:26:57 +0000
commit2c448c03f97a191c3082fd99a3180396ad589a48 (patch)
tree002563485c3f08326f05efdfa495b9262551a984 /lib
parent82411d2285cbb2ae737c4b1f23096ec0a3ca2b11 (diff)
fix error handling in yp case.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/net/getaddrinfo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/net/getaddrinfo.c b/lib/libc/net/getaddrinfo.c
index 2c10a020178..1038ce9d83e 100644
--- a/lib/libc/net/getaddrinfo.c
+++ b/lib/libc/net/getaddrinfo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getaddrinfo.c,v 1.15 2000/02/25 04:41:41 itojun Exp $ */
+/* $OpenBSD: getaddrinfo.c,v 1.16 2000/03/13 12:26:56 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -1407,7 +1407,8 @@ nextline:
if (pai->ai_flags & AI_CANONNAME)
(void)get_canonname(pai, res, canonname);
}
- }
+ } else
+ res0 = NULL;
if (res0) {
cur->ai_next = res0;
while (cur && cur->ai_next)