]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - nss/digits_dots.c
CVE-2016-10739: getaddrinfo: Fully parse IPv4 address strings [BZ #20018]
[thirdparty/glibc.git] / nss / digits_dots.c
index 95015896a43ee32e80f26868987312f1e49d8f58..440d9955d2db3b48ef9680b0d02c7e12055da67e 100644 (file)
@@ -29,7 +29,6 @@
 #include "nsswitch.h"
 
 #ifdef USE_NSCD
-# define inet_aton __inet_aton
 # include <nscd/nscd_proto.h>
 #endif
 
@@ -160,7 +159,7 @@ __nss_hostname_digits_dots_context (struct resolv_context *ctx,
                     255.255.255.255?  The test below will succeed
                     spuriously... ???  */
                  if (af == AF_INET)
-                   ok = __inet_aton (name, (struct in_addr *) host_addr);
+                   ok = __inet_aton_exact (name, (struct in_addr *) host_addr);
                  else
                    {
                      assert (af == AF_INET6);