From 2e96f1c73b06e81da59ef7fffa426dc201875f31 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Thu, 4 Aug 2011 15:42:10 -0400 Subject: Fix encoding name for IDN in getaddrinfo --- sysdeps/posix/getaddrinfo.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sysdeps/posix') diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index 6d574c51e8..a5aafe93ac 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 -- cgit v1.2.1