mirror of git://sourceware.org/git/glibc.git
* sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
entry is available, believe it.
This commit is contained in:
parent
343996c47c
commit
66d904966f
|
|
@ -1,5 +1,8 @@
|
||||||
2008-05-17 Ulrich Drepper <drepper@redhat.com>
|
2008-05-17 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
|
||||||
|
entry is available, believe it.
|
||||||
|
|
||||||
* resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
|
* resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
|
||||||
no answers return NSS_STATUS_NOTFOUND.
|
no answers return NSS_STATUS_NOTFOUND.
|
||||||
(gaih_getanswer): Don't call gaih_getanswer_slice if the answer
|
(gaih_getanswer): Don't call gaih_getanswer_slice if the answer
|
||||||
|
|
|
||||||
|
|
@ -660,7 +660,10 @@ gaih_inet (const char *name, const struct gaih_service *service,
|
||||||
|
|
||||||
goto process_list;
|
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)
|
if (herrno == NETDB_INTERNAL && errno == ENOMEM)
|
||||||
return -EAI_MEMORY;
|
return -EAI_MEMORY;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue