Message ID | efb95189-0e4c-3cc2-7a78-a2267a4b8b33@redhat.com |
---|---|
State | New |
Headers | show |
getaddrinfo: Eliminate another strdup call 2017-06-03 Florian Weimer <fweimer@redhat.com> * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __strdup instead of strdup. diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index a8b5bb5..a8bdd9a 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;