diff options
author | Andreas Schwab <schwab@redhat.com> | 2011-08-04 15:42:10 -0400 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2011-08-04 15:42:10 -0400 |
commit | 2e96f1c73b06e81da59ef7fffa426dc201875f31 (patch) | |
tree | 866d87d3290959141c5485065b9c21ab7352cfb4 /sysdeps/posix/getaddrinfo.c | |
parent | 85188888f63b9fc7f40437baeed4c7d6e4f30e18 (diff) | |
download | glibc-2e96f1c73b06e81da59ef7fffa426dc201875f31.zip glibc-2e96f1c73b06e81da59ef7fffa426dc201875f31.tar.gz glibc-2e96f1c73b06e81da59ef7fffa426dc201875f31.tar.bz2 |
Fix encoding name for IDN in getaddrinfo
Diffstat (limited to 'sysdeps/posix/getaddrinfo.c')
-rw-r--r-- | sysdeps/posix/getaddrinfo.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index 6d574c5..a5aafe9 100644 --- a/sysdeps/posix/getaddrinfo.c +++ b/sysdeps/posix/getaddrinfo.c @@ -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 |