mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-29 08:11:08 +00:00
getaddrinfo: Return EAI_NODATA if gethostbyname2_r reports NO_DATA [BZ #21922]
This commit is contained in:
parent
65329bd233
commit
5f8340f583
@ -1,3 +1,9 @@
|
||||
2017-09-01 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
[BZ #21922]
|
||||
* sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
|
||||
coming from gethostbyname2_r.
|
||||
|
||||
2017-09-01 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
* support/namespace.h (struct support_chroot_configuration): Add
|
||||
|
@ -618,6 +618,14 @@ gaih_inet (const char *name, const struct gaih_service *service,
|
||||
}
|
||||
*pat = addrmem;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (h_errno == NO_DATA)
|
||||
result = -EAI_NODATA;
|
||||
else
|
||||
result = -EAI_NONAME;
|
||||
goto free_and_return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user