]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
inet-fortified: fix namespace violation (bug 33227)
authorSam James <sam@gentoo.org>
Mon, 28 Jul 2025 20:55:30 +0000 (21:55 +0100)
committerSam James <sam@gentoo.org>
Tue, 29 Jul 2025 10:50:29 +0000 (11:50 +0100)
We need to use __sz, not sz, as we do elsewhere.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
inet/bits/inet-fortified.h

index 6738221a543b8c3552c0fafbcd05472ca771ce4d..cc476ebcfdefb8919fe42e6934a22c442ee3369a 100644 (file)
@@ -45,15 +45,15 @@ __NTH (inet_pton (int __af,
     __fortify_clang_warning_only_if_bos0_lt
        (4, __dst, "inet_pton called with destination buffer size less than 4")
 {
-  size_t sz = 0;
+  size_t __sz = 0;
   if (__af == AF_INET)
-    sz = sizeof (struct in_addr);
+    __sz = sizeof (struct in_addr);
   else if (__af == AF_INET6)
-    sz = sizeof (struct in6_addr);
+    __sz = sizeof (struct in6_addr);
   else
     return __inet_pton_alias (__af, __src, __dst);
 
-  return __glibc_fortify (inet_pton, sz, sizeof (char),
+  return __glibc_fortify (inet_pton, __sz, sizeof (char),
                          __glibc_objsize (__dst),
                          __af, __src, __dst);
 };