From: Florian Weimer Date: Sat, 3 Jun 2017 06:37:13 +0000 (+0200) Subject: getaddrinfo: Eliminate another strdup call X-Git-Tag: glibc-2.26~433 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=363911ce1313a246b7d33f0983a09e7ab2525b3a;p=thirdparty%2Fglibc.git getaddrinfo: Eliminate another strdup call --- diff --git a/ChangeLog b/ChangeLog index a97f09d3daf..b22786ff70f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-06-03 Florian Weimer + + * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __strdup instead + of strdup. + 2017-06-02 H.J. Lu * sysdeps/x86/cacheinfo.c (__x86_shared_non_temporal_threshold): diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index a8b5bb541e1..a8bdd9a1829 100644 --- a/sysdeps/posix/getaddrinfo.c +++ b/sysdeps/posix/getaddrinfo.c @@ -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;