[openssl-commits] [openssl] OpenSSL_1_1_0-stable update
Rich Salz
rsalz at openssl.org
Wed Sep 7 13:42:57 UTC 2016
The branch OpenSSL_1_1_0-stable has been updated
via b7d2480c820531df2a5a300a7b24bbaa7755c288 (commit)
from e9590d00fc7c269f3e90b93cf6ac17238f0ca2c6 (commit)
- Log -----------------------------------------------------------------
commit b7d2480c820531df2a5a300a7b24bbaa7755c288
Author: Alex Gaynor <alex.gaynor at gmail.com>
Date: Wed Sep 7 09:41:20 2016 -0400
GH1537: Avoid double-free in the EVP_PKEY API
Reviewed-by: Matt Caswell <matt at openssl.org>
Reviewed-by: Rich Salz <rsalz at openssl.org>
(cherry picked from commit d65c3615f6c658478503f4862f8055203a98038c)
-----------------------------------------------------------------------
Summary of changes:
crypto/evp/p_lib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto/evp/p_lib.c b/crypto/evp/p_lib.c
index a4dcf58..9828620 100644
--- a/crypto/evp/p_lib.c
+++ b/crypto/evp/p_lib.c
@@ -398,6 +398,7 @@ void EVP_PKEY_free(EVP_PKEY *x)
return;
REF_ASSERT_ISNT(i < 0);
EVP_PKEY_free_it(x);
+ CRYPTO_THREAD_lock_free(x->lock);
sk_X509_ATTRIBUTE_pop_free(x->attributes, X509_ATTRIBUTE_free);
OPENSSL_free(x);
}
@@ -413,7 +414,6 @@ static void EVP_PKEY_free_it(EVP_PKEY *x)
ENGINE_finish(x->engine);
x->engine = NULL;
#endif
- CRYPTO_THREAD_lock_free(x->lock);
}
static int unsup_alg(BIO *out, const EVP_PKEY *pkey, int indent,
More information about the openssl-commits
mailing list