]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/glibc/glibc-rh981942.patch
dhcpcd: fix delay after dhcp down.
[ipfire-2.x.git] / src / patches / glibc / glibc-rh981942.patch
CommitLineData
bb330e25
AF
1commit 2e96f1c73b06e81da59ef7fffa426dc201875f31
2Author: Andreas Schwab <schwab@redhat.com>
3Date: Thu Aug 4 15:42:10 2011 -0400
4
5 Fix encoding name for IDN in getaddrinfo
6
7diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
8index 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