mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-10 19:30:10 +00:00
getaddrinfo: Restore RES_USE_INET6 flag on error path [BZ #19994]
This commit is contained in:
parent
9e6e128d14
commit
8db2cf163e
@ -1,3 +1,9 @@
|
||||
2016-05-10 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
[BZ #19994]
|
||||
* sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
|
||||
flag in _res.options.
|
||||
|
||||
2016-05-09 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* conform/data/sys/types.h-data (blkcnt_t): Do not expect for
|
||||
|
@ -240,6 +240,7 @@ convert_hostent_to_gaih_addrtuple (const struct addrinfo *req,
|
||||
2 * tmpbuflen); \
|
||||
if (newp == NULL) \
|
||||
{ \
|
||||
_res.options |= old_res_options & RES_USE_INET6; \
|
||||
result = -EAI_MEMORY; \
|
||||
goto free_and_return; \
|
||||
} \
|
||||
|
Loading…
Reference in New Issue
Block a user