diff options
| author | Frédéric Bérat <fberat@redhat.com> | 2025-03-07 14:42:26 +0100 |
|---|---|---|
| committer | Frédéric Bérat <fberat@redhat.com> | 2025-03-21 09:35:16 +0100 |
| commit | 84373ef7b72c9c8ab61ce1fdfd798777715a1a52 (patch) | |
| tree | 2712a37ae318e7c9bbd2055aa044b287896d3eeb /nss | |
| parent | c5113a838b28a8894da19794ca7a69c5ace959a3 (diff) | |
| download | glibc-84373ef7b72c9c8ab61ce1fdfd798777715a1a52.tar.xz glibc-84373ef7b72c9c8ab61ce1fdfd798777715a1a52.zip | |
Prepare inet_ntop to be fortified
Rename inet_ntop to __inet_ntop and create the inet_ntop weak alias
based on it in order to prepare for disabling fortification when
available.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'nss')
| -rw-r--r-- | nss/getnameinfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nss/getnameinfo.c b/nss/getnameinfo.c index c3b46e712b..0db06c4ae8 100644 --- a/nss/getnameinfo.c +++ b/nss/getnameinfo.c @@ -338,7 +338,7 @@ gni_host_inet_numeric (struct scratch_buffer *tmpbuf, if (sa->sa_family == AF_INET6) { const struct sockaddr_in6 *sin6p = (const struct sockaddr_in6 *) sa; - if (inet_ntop (AF_INET6, &sin6p->sin6_addr, host, hostlen) == NULL) + if (__inet_ntop (AF_INET6, &sin6p->sin6_addr, host, hostlen) == NULL) return EAI_OVERFLOW; uint32_t scopeid = sin6p->sin6_scope_id; @@ -365,7 +365,7 @@ gni_host_inet_numeric (struct scratch_buffer *tmpbuf, else { const struct sockaddr_in *sinp = (const struct sockaddr_in *) sa; - if (inet_ntop (AF_INET, &sinp->sin_addr, host, hostlen) == NULL) + if (__inet_ntop (AF_INET, &sinp->sin_addr, host, hostlen) == NULL) return EAI_OVERFLOW; } return 0; |
