projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57ad215
)
Add a missing CRYPTO_w_unlock in get_cert_by_subject
author
Bernd Edlinger
<bernd.edlinger@hotmail.de>
Fri, 4 Aug 2017 06:11:24 +0000
(08:11 +0200)
committer
Bernd Edlinger
<bernd.edlinger@hotmail.de>
Fri, 4 Aug 2017 06:11:24 +0000
(08:11 +0200)
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4084)
crypto/x509/by_dir.c
patch
|
blob
|
history
diff --git
a/crypto/x509/by_dir.c
b/crypto/x509/by_dir.c
index bbc3189381e55ebbe5b5fe735b463d33db948ff2..6f0209a275ef33f34331835f525d600248edf268 100644
(file)
--- 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;
}