]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* posix/gai.conf: Fix comment for scope nullbits.
authorUlrich Drepper <drepper@redhat.com>
Wed, 26 Mar 2008 17:45:14 +0000 (17:45 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 26 Mar 2008 17:45:14 +0000 (17:45 +0000)
* sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
default to 128 bits for v4 mapped addresses.

ChangeLog
sysdeps/posix/getaddrinfo.c

index 185955fe19b0b370d7a4b5e5eb54341f4e5717e2..b4cafe0dee7f9a00a972805d5fce816141f5c139 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-03-25  Jakub Jelinek  <jakub@redhat.com>
+
+       * 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.
+
 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
 
        * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
index fb18bba47d94480539c32b4f6026d3b7f6bb8d0a..9a27efdf83cbee3b624e04e3a99cfc827b63d68e 100644 (file)
@@ -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