[openssl-commits] [openssl] OpenSSL_1_0_2-stable update
bernd.edlinger at hotmail.de
bernd.edlinger at hotmail.de
Fri Aug 4 12:04:47 UTC 2017
The branch OpenSSL_1_0_2-stable has been updated
via a33a335e442b0bb53d28eb42833944327651c9ed (commit)
from 57ad215615071a7dc578e390de61ae163b15df9d (commit)
- Log -----------------------------------------------------------------
commit a33a335e442b0bb53d28eb42833944327651c9ed
Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
Date: Fri Aug 4 08:11:24 2017 +0200
Add a missing CRYPTO_w_unlock in get_cert_by_subject
Reviewed-by: Andy Polyakov <appro at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4084)
-----------------------------------------------------------------------
Summary of changes:
crypto/x509/by_dir.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/crypto/x509/by_dir.c b/crypto/x509/by_dir.c
index bbc3189..6f0209a 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;
}
More information about the openssl-commits
mailing list