From 4c04a19860d1a6cfaa234463cc0b8e28740d9acb Mon Sep 17 00:00:00 2001 From: Neil Horman Date: Wed, 27 Nov 2024 12:22:19 -0500 Subject: [PATCH] Fix solaris build in CRYPTO_atomic_store api MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- crypto/threads_pthread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/threads_pthread.c b/crypto/threads_pthread.c index 49369d49d6..7d25b241e1 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; }