]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix encoding name for IDN in getaddrinfo
authorAndreas Schwab <schwab@redhat.com>
Thu, 4 Aug 2011 19:42:10 +0000 (15:42 -0400)
committerUlrich Drepper <drepper@gmail.com>
Thu, 4 Aug 2011 19:42:10 +0000 (15:42 -0400)
ChangeLog
sysdeps/posix/getaddrinfo.c

index fbacbd5699a4773f00adca4c7e4e0a92a76d6529..0392853b19a59e68118f4687a84521db7f023301 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-07-26  Andreas Schwab  <schwab@redhat.com>
+
+       * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
+       encoding to ACE if AI_IDN.
+
 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
 
        * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
index 6d574c51e8b1f5f8da81220feb1085b43d8d7cc8..a5aafe93ac8eb8a5e3151e71246ab073caa47c8c 100644 (file)
@@ -432,7 +432,10 @@ gaih_inet (const char *name, const struct gaih_service *service,
          /* In case the output string is the same as the input string
             no new string has been allocated.  */
          if (p != name)
-           malloc_name = true;
+           {
+             name = p;
+             malloc_name = true;
+           }
        }
 #endif