]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix the intermittent lhash_test failure on Windows
authorTomas Mraz <tomas@openssl.org>
Wed, 11 Dec 2024 14:40:40 +0000 (15:40 +0100)
committerTomas Mraz <tomas@openssl.org>
Fri, 13 Dec 2024 07:23:21 +0000 (08:23 +0100)
commitbe4ce01f9f51d4ec64b53626834905a8a1de96ca
treefe7dfaead6b5947112dd9b85e752f6f2f27aa3fc
parent8ad98cce41aa8a6278f7ade6ad2f70b80b194b72
Fix the intermittent lhash_test failure on Windows

We must set pending_delete before the actual deletion as another inserting
or deleting thread can pick up the delete callback before the
ossl_ht_write_unlock() call.

This can happen only if no read locks are pending and only on Windows where
we do not use the write mutex to get the callback list.

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/26152)
test/lhash_test.c