1
0
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:
Florian Weimer
2016-05-10 10:09:24 +02:00
parent 9e6e128d14
commit 8db2cf163e
2 changed files with 7 additions and 0 deletions

View File

@@ -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

View File

@@ -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; \
} \