Avoid an unneccessary lock if we didn't add anything to the store
authorMatt Caswell <matt@openssl.org>
Fri, 12 May 2023 14:52:07 +0000 (15:52 +0100)
committerPauli <pauli@openssl.org>
Sun, 4 Jun 2023 23:09:23 +0000 (09:09 +1000)
commit50001e0e15d4a96213c2eea7c56f80087afa89fd
treec37ed000c3770c0d2b28e4499084efffe9eacf53
parent4c56539cb338f1583289f93379ee254b45b66568
Avoid an unneccessary lock if we didn't add anything to the store

Partially fixes #20286

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20952)
crypto/x509/by_dir.c