]> 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>
Sat, 3 Jun 2017 06:37:31 +0000 (08:37 +0200)
ChangeLog
sysdeps/posix/getaddrinfo.c

index a97f09d3dafb6559d9edd5ef2dcde4ddad1164b5..b22786ff70f6e28316e6741147fb88db0395d3fe 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  H.J. Lu  <hongjiu.lu@intel.com>
 
        * sysdeps/x86/cacheinfo.c (__x86_shared_non_temporal_threshold):
index a8b5bb541e1411502ded4d8539d9d78f8d3f7f23..a8bdd9a1829409bd797637b2c4fca4d67a11012d 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;