]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix solaris build in CRYPTO_atomic_store api
authorNeil Horman <nhorman@openssl.org>
Wed, 27 Nov 2024 17:22:19 +0000 (12:22 -0500)
committerTomas Mraz <tomas@openssl.org>
Fri, 29 Nov 2024 11:08:40 +0000 (12:08 +0100)
Misnamed variable, just correct it to dst

Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26075)

(cherry picked from commit 4c04a19860d1a6cfaa234463cc0b8e28740d9acb)

crypto/threads_pthread.c

index b44559e373ae87a8f8a9ac7922a6dab481a70f77..ae750a2be8e29169f4a9d5f69a1faa865d6a3918 100644 (file)
@@ -993,7 +993,7 @@ int CRYPTO_atomic_store(uint64_t *dst, uint64_t val, CRYPTO_RWLOCK *lock)
     }
 # elif defined(__sun) && (defined(__SunOS_5_10) || defined(__SunOS_5_11))
     /* This will work for all future Solaris versions. */
-    if (ret != NULL) {
+    if (dst != NULL) {
         atomic_swap_64(dst, val);
         return 1;
     }