]>
Commit | Line | Data |
---|---|---|
bb330e25 AF |
1 | commit 2e96f1c73b06e81da59ef7fffa426dc201875f31 |
2 | Author: Andreas Schwab <schwab@redhat.com> | |
3 | Date: Thu Aug 4 15:42:10 2011 -0400 | |
4 | ||
5 | Fix encoding name for IDN in getaddrinfo | |
6 | ||
7 | diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c | |
8 | index 6d574c5..a5aafe9 100644 | |
9 | --- a/sysdeps/posix/getaddrinfo.c | |
10 | +++ b/sysdeps/posix/getaddrinfo.c | |
11 | @@ -432,7 +432,10 @@ gaih_inet (const char *name, const struct gaih_service *service, | |
12 | /* In case the output string is the same as the input string | |
13 | no new string has been allocated. */ | |
14 | if (p != name) | |
15 | - malloc_name = true; | |
16 | + { | |
17 | + name = p; | |
18 | + malloc_name = true; | |
19 | + } | |
20 | } | |
21 | #endif | |
22 |