(gaih_inet): If nscd reports no entry is available, believe it.
authordrepper <drepper>
Sat, 17 May 2008 21:44:48 +0000 (21:44 +0000)
committerdrepper <drepper>
Sat, 17 May 2008 21:44:48 +0000 (21:44 +0000)
sysdeps/posix/getaddrinfo.c

index 2515d23..5c82b52 100644 (file)
@@ -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;