Fix wrong lock claimed in x509 dir lookup.
authorKrists Krilovs <krists.krilovs@gmail.com>
Mon, 8 Jul 2019 20:43:09 +0000 (13:43 -0700)
committerShane Lontis <shane.lontis@oracle.com>
Mon, 15 Jul 2019 01:55:46 +0000 (11:55 +1000)
commit69ae4153af5a6e62369611b694748c846a461d02
tree2b6eaa3e07fa6a56d152eafcdf56926c2b07b595
parent04151456b9d896a7825a5ac77c0310c97fa5f650
Fix wrong lock claimed in x509 dir lookup.

x509 store's objects cache can get corrupted when using dir lookup
method in multithreaded application. Claim x509 store's lock when
accessing objects cache.

CLA: trivial

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9326)
crypto/x509/by_dir.c