aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/posix/getaddrinfo.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-07-25 12:29:04 -0700
committerUlrich Drepper <drepper@redhat.com>2009-07-25 12:29:04 -0700
commit657317537c09b82a2feb1194fda045f63e3a1222 (patch)
tree526220e8f52b6b04486c1457134c5084b0c6efff /sysdeps/posix/getaddrinfo.c
parent29e92fa5cd9c5c09a9c78563f35729fec9075e7f (diff)
downloadglibc-657317537c09b82a2feb1194fda045f63e3a1222.zip
glibc-657317537c09b82a2feb1194fda045f63e3a1222.tar.gz
glibc-657317537c09b82a2feb1194fda045f63e3a1222.tar.bz2
Handle missing NSS modules and those without callbacks.
getaddrinfo didn't update the status variable in that round of the loop if no callback was used.
Diffstat (limited to 'sysdeps/posix/getaddrinfo.c')
-rw-r--r--sysdeps/posix/getaddrinfo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
index d346c62..a788d18 100644
--- a/sysdeps/posix/getaddrinfo.c
+++ b/sysdeps/posix/getaddrinfo.c
@@ -833,6 +833,8 @@ gaih_inet (const char *name, const struct gaih_service *service,
&& inet6_status != NSS_STATUS_UNAVAIL)
status = inet6_status;
}
+ else
+ status = NSS_STATUS_UNAVAIL;
}
if (nss_next_action (nip, status) == NSS_ACTION_RETURN)