From 657317537c09b82a2feb1194fda045f63e3a1222 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 25 Jul 2009 12:29:04 -0700 Subject: 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. --- sysdeps/posix/getaddrinfo.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sysdeps') diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index d346c621fb..a788d18fee 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) -- cgit v1.2.3