]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/glibc/glibc-rh863384.patch
dhcpcd: fix delay after dhcp down.
[ipfire-2.x.git] / src / patches / glibc / glibc-rh863384.patch
CommitLineData
bb330e25
AF
1diff -pruN glibc-2.12-2-gc4ccff1/sysdeps/posix/getaddrinfo.c glibc-2.12-2-gc4ccff1.fixed/sysdeps/posix/getaddrinfo.c
2--- glibc-2.12-2-gc4ccff1/sysdeps/posix/getaddrinfo.c 2013-07-23 15:23:42.011941780 +0530
3+++ glibc-2.12-2-gc4ccff1.fixed/sysdeps/posix/getaddrinfo.c 2013-07-23 15:24:54.032938976 +0530
4@@ -562,8 +562,8 @@ gaih_inet (const char *name, const struc
5
6 /* If we do not have to look for IPv6 addresses, use
7 the simple, old functions, which do not support
8- IPv6 scope ids. */
9- if (req->ai_family == AF_INET)
10+ IPv6 scope ids, nor retrieving the canonical name. */
11+ if (req->ai_family == AF_INET && (req->ai_flags & AI_CANONNAME) == 0)
12 {
13 /* Add room for struct host_data in resolv/nss_dns/dns-host.c */
14 size_t tmpbuflen = 512 + (MAX_NR_ALIASES+MAX_NR_ADDRS+1)*sizeof(char*)