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.5.0-alpha1~867 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4c04a19860d1a6cfaa234463cc0b8e28740d9acb;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) --- diff --git a/crypto/threads_pthread.c b/crypto/threads_pthread.c index 49369d49d6c..7d25b241e19 100644 --- a/crypto/threads_pthread.c +++ b/crypto/threads_pthread.c @@ -994,7 +994,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; }