]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
avoid sun as variable name
authorVladimir Kotal <vladimir.kotal@oracle.com>
Wed, 4 Oct 2023 14:11:42 +0000 (16:11 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 5 Oct 2023 17:12:51 +0000 (19:12 +0200)
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)

test/bio_addr_test.c

index a985d03b14c1a131e598b18c6e8c21eb54a036b4..9ca007e51195dfa3d955d7de2607ba99af9b445a 100644 (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: