artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14d3abb
)
fix error handling in yp case.
author
itojun
<itojun@openbsd.org>
Mon, 13 Mar 2000 12:26:56 +0000
(12:26 +0000)
committer
itojun
<itojun@openbsd.org>
Mon, 13 Mar 2000 12:26:56 +0000
(12:26 +0000)
lib/libc/net/getaddrinfo.c
patch
|
blob
|
history
diff --git
a/lib/libc/net/getaddrinfo.c
b/lib/libc/net/getaddrinfo.c
index
2c10a02
..
1038ce9
100644
(file)
--- a/
lib/libc/net/getaddrinfo.c
+++ b/
lib/libc/net/getaddrinfo.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: getaddrinfo.c,v 1.1
5 2000/02/25 04:41:41
itojun Exp $ */
+/* $OpenBSD: getaddrinfo.c,v 1.1
6 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)