From 66d904966f878ebace3e55d4fa86944d24a55420 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 17 May 2008 21:44:56 +0000 Subject: * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no entry is available, believe it. --- sysdeps/posix/getaddrinfo.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sysdeps/posix') diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index 2515d23c26..5c82b5274a 100644 --- a/sysdeps/posix/getaddrinfo.c +++ b/sysdeps/posix/getaddrinfo.c @@ -660,7 +660,10 @@ gaih_inet (const char *name, const struct gaih_service *service, goto process_list; } - else if (err != 0 && __nss_not_use_nscd_hosts == 0) + else if (err == 0) + /* The database contains a negative entry. */ + return 0; + else if (__nss_not_use_nscd_hosts == 0) { if (herrno == NETDB_INTERNAL && errno == ENOMEM) return -EAI_MEMORY; -- cgit 1.4.1