35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
commit 87afbd7a1ad9c1dd116921817fa97198171045db
|
|
Author: Sam James <sam@gentoo.org>
|
|
Date: Mon Jul 28 21:55:30 2025 +0100
|
|
|
|
inet-fortified: fix namespace violation (bug 33227)
|
|
|
|
We need to use __sz, not sz, as we do elsewhere.
|
|
|
|
Reviewed-by: Florian Weimer <fweimer@redhat.com>
|
|
|
|
diff --git a/inet/bits/inet-fortified.h b/inet/bits/inet-fortified.h
|
|
index 8420a4b7fb41086f..5d16b1f871c49e6f 100644
|
|
--- a/inet/bits/inet-fortified.h
|
|
+++ b/inet/bits/inet-fortified.h
|
|
@@ -38,15 +38,15 @@ __fortify_function int
|
|
__NTH (inet_pton (int __af, const char *__restrict __src,
|
|
void * __restrict __dst))
|
|
{
|
|
- 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);
|
|
};
|