From fde15fdc5bea3d66be8fa967031ab89707b08a39 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 26 Mar 2008 17:45:14 +0000 Subject: * posix/gai.conf: Fix comment for scope nullbits. * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present, default to 128 bits for v4 mapped addresses. --- sysdeps/posix/getaddrinfo.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sysdeps') diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index fb18bba..9a27efd 100644 --- a/sysdeps/posix/getaddrinfo.c +++ b/sysdeps/posix/getaddrinfo.c @@ -1775,6 +1775,7 @@ gaiconf_init (void) *cp++ = '\0'; if (inet_pton (AF_INET6, val1, &prefix)) { + bits = 128; if (IN6_IS_ADDR_V4MAPPED (&prefix) && (cp == NULL || (bits = strtoul (cp, &endp, 10)) != ULONG_MAX -- cgit v1.1