From: Neil Horman Date: Wed, 27 Nov 2024 17:22:19 +0000 (-0500) Subject: Fix solaris build in CRYPTO_atomic_store api X-Git-Tag: openssl-3.4.1~105 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22ab18fa4faf8963afc3692eb1544d6a8bdc110e;p=thirdparty%2Fopenssl.git Fix solaris build in CRYPTO_atomic_store api Misnamed variable, just correct it to dst Reviewed-by: Paul Dale Reviewed-by: Saša Nedvědický Reviewed-by: Matt Caswell Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/26075) (cherry picked from commit 4c04a19860d1a6cfaa234463cc0b8e28740d9acb) --- diff --git a/crypto/threads_pthread.c b/crypto/threads_pthread.c index b44559e373a..ae750a2be8e 100644 --- a/crypto/threads_pthread.c +++ b/crypto/threads_pthread.c @@ -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; }