getaddrinfo: Eliminate another strdup call

(cherry picked from commit 363911ce13)
This commit is contained in:
Florian Weimer 2017-06-03 08:37:13 +02:00
parent 8fbf5688ed
commit b091ef7e2f
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2017-06-03 Florian Weimer <fweimer@redhat.com>
* sysdeps/posix/getaddrinfo.c (gaih_inet): Call __strdup instead
of strdup.
2017-06-02 Florian Weimer <fweimer@redhat.com>
* sysdeps/posix/getaddrinfo.c (gethosts): Eliminate another

View File

@ -732,7 +732,7 @@ gaih_inet (const char *name, const struct gaih_service *service,
(*pat)->name = NULL;
else if (canonbuf == NULL)
{
canonbuf = strdup (air->canon);
canonbuf = __strdup (air->canon);
if (canonbuf == NULL)
{
result = -EAI_MEMORY;