diff options
author | Florian Weimer <fweimer@redhat.com> | 2017-06-03 08:37:13 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2018-01-04 11:20:11 +0100 |
commit | b091ef7e2f6288a001423a5d037b34663996ffb5 (patch) | |
tree | 67ba2dc8b11a21a66dd1314400c47e5717fd0f25 | |
parent | 8fbf5688edbaead49130b0d2f887335475a298e7 (diff) | |
download | glibc-b091ef7e2f6288a001423a5d037b34663996ffb5.tar.gz glibc-b091ef7e2f6288a001423a5d037b34663996ffb5.tar.xz glibc-b091ef7e2f6288a001423a5d037b34663996ffb5.zip |
getaddrinfo: Eliminate another strdup call
(cherry picked from commit 363911ce1313a246b7d33f0983a09e7ab2525b3a)
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sysdeps/posix/getaddrinfo.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 2753fdd595..0ab7c49c71 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index 37e84c1eb1..e0c53936cb 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; |