mirror of
https://sourceware.org/git/glibc.git
synced 2026-01-06 11:51:29 +03:00
getaddrinfo: Restore RES_USE_INET6 flag on error path [BZ #19994]
This commit is contained in:
@@ -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; \
|
||||
} \
|
||||
|
||||
Reference in New Issue
Block a user