]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
getaddrinfo: Eliminate another strdup call
authorFlorian Weimer <fweimer@redhat.com>
Sat, 3 Jun 2017 06:37:13 +0000 (08:37 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 4 Jan 2018 10:20:11 +0000 (11:20 +0100)
(cherry picked from commit 363911ce1313a246b7d33f0983a09e7ab2525b3a)

ChangeLog
sysdeps/posix/getaddrinfo.c

index 2753fdd595861441560002cec7244f1e655d2b38..0ab7c49c711bf433831e73601160a05febfab8d6 100644 (file)
--- 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
index 37e84c1eb1828d2ecfe511bd4bac218fcc77ea07..e0c53936cb3da037ec9f50683050acd234392100 100644 (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;