SOURCES: glibc-fixes.patch (NEW) upstream: * sysdeps/posix/getaddrin...
arekm
arekm at pld-linux.org
Fri Nov 28 18:09:29 CET 2008
Author: arekm Date: Fri Nov 28 17:09:29 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
upstream:
* sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
to IPv4 or IPv6 if an interface has been found.
---- Files affected:
SOURCES:
glibc-fixes.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/glibc-fixes.patch
diff -u /dev/null SOURCES/glibc-fixes.patch:1.1
--- /dev/null Fri Nov 28 18:09:30 2008
+++ SOURCES/glibc-fixes.patch Fri Nov 28 18:09:24 2008
@@ -0,0 +1,13 @@
+diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
+index 97f3af9..72fbdb0 100644
+--- a/sysdeps/posix/getaddrinfo.c
++++ b/sysdeps/posix/getaddrinfo.c
+@@ -2108,7 +2108,7 @@ getaddrinfo (const char *name, const char *service,
+ {
+ /* If we haven't seen both IPv4 and IPv6 interfaces we can
+ narrow down the search. */
+- if (! seen_ipv4 || ! seen_ipv6)
++ if ((! seen_ipv4 || ! seen_ipv6) && (seen_ipv4 || seen_ipv6))
+ {
+ local_hints = *hints;
+ local_hints.ai_family = seen_ipv4 ? PF_INET : PF_INET6;
================================================================
More information about the pld-cvs-commit
mailing list