diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2017-08-04 08:11:24 +0200 |
---|---|---|
committer | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2017-08-04 08:11:24 +0200 |
commit | a33a335e442b0bb53d28eb42833944327651c9ed (patch) | |
tree | 84428fd57bd1a2f3edaabee52f8fc0177aa193b8 /crypto/x509 | |
parent | 57ad215615071a7dc578e390de61ae163b15df9d (diff) |
Add a missing CRYPTO_w_unlock in get_cert_by_subject
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4084)
Diffstat (limited to 'crypto/x509')
-rw-r--r-- | crypto/x509/by_dir.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/x509/by_dir.c b/crypto/x509/by_dir.c index bbc3189381..6f0209a275 100644 --- a/crypto/x509/by_dir.c +++ b/crypto/x509/by_dir.c @@ -402,6 +402,7 @@ static int get_cert_by_subject(X509_LOOKUP *xl, int type, X509_NAME *name, if (!hent) { hent = OPENSSL_malloc(sizeof(BY_DIR_HASH)); if (hent == NULL) { + CRYPTO_w_unlock(CRYPTO_LOCK_X509_STORE); X509err(X509_F_GET_CERT_BY_SUBJECT, ERR_R_MALLOC_FAILURE); goto finish; } |