From: ManishPatidar1 Date: Mon, 9 Sep 2019 13:32:56 +0000 (+0530) Subject: clearing the ecx private key memory X-Git-Tag: openssl-3.0.0-alpha1~1345 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6ef03ea98fac501e6d6e33bac6ad3c92ea074712;p=oweals%2Fopenssl.git clearing the ecx private key memory Reviewed-by: Dmitry Belyavskiy Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/9830) --- diff --git a/crypto/ec/ecx_meth.c b/crypto/ec/ecx_meth.c index 75ea96754f..b88139218a 100644 --- a/crypto/ec/ecx_meth.c +++ b/crypto/ec/ecx_meth.c @@ -195,7 +195,7 @@ static int ecx_priv_decode(EVP_PKEY *pkey, const PKCS8_PRIV_KEY_INFO *p8) } rv = ecx_key_op(pkey, pkey->ameth->pkey_id, palg, p, plen, KEY_OP_PRIVATE); - ASN1_OCTET_STRING_free(oct); + ASN1_STRING_clear_free(oct); return rv; }