diff options
author | itojun <> | 2000-03-13 12:26:56 +0000 |
---|---|---|
committer | itojun <> | 2000-03-13 12:26:56 +0000 |
commit | d93750b9c05d967f0c8417e3bb46be5a63dc6e69 (patch) | |
tree | 107f5cd0077af1ddc6bd286e19dd45b37528fe3a | |
parent | c554fab840face1e3c931e9ea14bf8e35f577b74 (diff) | |
download | openbsd-d93750b9c05d967f0c8417e3bb46be5a63dc6e69.tar.gz openbsd-d93750b9c05d967f0c8417e3bb46be5a63dc6e69.tar.bz2 openbsd-d93750b9c05d967f0c8417e3bb46be5a63dc6e69.zip |
fix error handling in yp case.
-rw-r--r-- | src/lib/libc/net/getaddrinfo.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libc/net/getaddrinfo.c b/src/lib/libc/net/getaddrinfo.c index 2c10a02017..1038ce9d83 100644 --- a/src/lib/libc/net/getaddrinfo.c +++ b/src/lib/libc/net/getaddrinfo.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: getaddrinfo.c,v 1.15 2000/02/25 04:41:41 itojun Exp $ */ | 1 | /* $OpenBSD: getaddrinfo.c,v 1.16 2000/03/13 12:26:56 itojun Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. | 4 | * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. |
@@ -1407,7 +1407,8 @@ nextline: | |||
1407 | if (pai->ai_flags & AI_CANONNAME) | 1407 | if (pai->ai_flags & AI_CANONNAME) |
1408 | (void)get_canonname(pai, res, canonname); | 1408 | (void)get_canonname(pai, res, canonname); |
1409 | } | 1409 | } |
1410 | } | 1410 | } else |
1411 | res0 = NULL; | ||
1411 | if (res0) { | 1412 | if (res0) { |
1412 | cur->ai_next = res0; | 1413 | cur->ai_next = res0; |
1413 | while (cur && cur->ai_next) | 1414 | while (cur && cur->ai_next) |