avoid sun as variable name

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22281)
This commit is contained in:
Vladimir Kotal 2023-10-04 16:11:42 +02:00 committed by Tomas Mraz
parent 4ca56f5180
commit 7ae31586a7

View File

@ -31,7 +31,7 @@ static BIO_ADDR *make_dummy_addr(int family)
struct sockaddr_in6 sin6;
#endif
#ifndef OPENSSL_NO_UNIX_SOCK
struct sockaddr_un sun;
struct sockaddr_un sunaddr;
#endif
} sa;
void *where;
@ -51,9 +51,9 @@ static BIO_ADDR *make_dummy_addr(int family)
#endif
#ifndef OPENSSL_NO_UNIX_SOCK
case AF_UNIX:
where = &(sa.sun.sun_path);
where = &(sa.sunaddr.sun_path);
/* BIO_ADDR_rawmake needs an extra byte for a NUL-terminator*/
wherelen = sizeof(sa.sun.sun_path) - 1;
wherelen = sizeof(sa.sunaddr.sun_path) - 1;
break;
#endif
default: