~ubuntu-toolchain/glibc/eglibc-2.9-pkg

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
 
	[BZ #10448]
	* sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
	callback we must touch the status to avoid using stale value.

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)