aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNeil Horman <nhorman@openssl.org>2024-06-17 14:12:46 -0400
committerTomas Mraz <tomas@openssl.org>2024-06-20 16:56:39 +0200
commitf7252d736da65ffa41cd81c6e0ec5ee58160eeb4 (patch)
treef5c4ceddffa8a8ee4cc9d93ce08fabbf77205d39 /test
parentfa495604516a610d988f02298c8d97a6ac4777bb (diff)
downloadopenssl-f7252d736da65ffa41cd81c6e0ec5ee58160eeb4.zip
openssl-f7252d736da65ffa41cd81c6e0ec5ee58160eeb4.tar.gz
openssl-f7252d736da65ffa41cd81c6e0ec5ee58160eeb4.tar.bz2
Some minor nit corrections in the thread code for rcu
Reviewed-by: Paul Dale <ppzgs1@gmail.com> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/24630) (cherry picked from commit d38d2642287ef9a22f20e662a19c217c227043a6)
Diffstat (limited to 'test')
-rw-r--r--test/threadstest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/threadstest.c b/test/threadstest.c
index 2d05255..b2b1ec2 100644
--- a/test/threadstest.c
+++ b/test/threadstest.c
@@ -436,7 +436,7 @@ static int _torture_rcu(void)
rcu_torture_result = 1;
rcu_lock = ossl_rcu_lock_new(1, NULL);
- if (!rcu_lock)
+ if (rcu_lock == NULL)
goto out;
TEST_info("Staring rcu torture");