]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix occasional assertion failure when storing properties
authorTomas Mraz <tomas@openssl.org>
Thu, 24 Nov 2022 17:48:10 +0000 (18:48 +0100)
committerTomas Mraz <tomas@openssl.org>
Tue, 29 Nov 2022 07:22:14 +0000 (08:22 +0100)
commit18e72cbefec5410d360f5c64b51243e12bd60bae
tree430eba24b8c485f6f6302ac88be279db20268922
parent93d3ad02123d323e455af388a9ec5cf9c28539d3
Fix occasional assertion failure when storing properties

Fixes #18631

The store lock does not prevent concurrent access to the
property cache, because there are multiple stores.

We drop the newly created entry and use the exisiting one
if there is one already.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19762)

(cherry picked from commit 92a25e24e6ec9735dea9ec645502cb075a5f8d24)
crypto/property/defn_cache.c
crypto/property/property.c
crypto/property/property_local.h
test/property_test.c