summaryrefslogtreecommitdiffstats
path: root/crypto/cms
diff options
context:
space:
mode:
authorMansour Ahmadi <m.ahmadi@northeastern.edu>2018-12-11 16:18:21 -0500
committerMatt Caswell <matt@openssl.org>2018-12-13 10:04:57 +0000
commit4128136a28c3b7d3878daed728c49f18eb950adc (patch)
tree8eb623cdc2227cb050d5416da71cd77ab33ea8cc /crypto/cms
parent55833a8de70589a5000044b6291e190f5a3826ae (diff)
Add missing OPENSSL_clear_free before using ec->key
Fixes #7657 Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/7877)
Diffstat (limited to 'crypto/cms')
-rw-r--r--crypto/cms/cms_pwri.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/cms/cms_pwri.c b/crypto/cms/cms_pwri.c
index af979b55d0..980252d107 100644
--- a/crypto/cms/cms_pwri.c
+++ b/crypto/cms/cms_pwri.c
@@ -373,6 +373,7 @@ int cms_RecipientInfo_pwri_crypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri,
goto err;
}
+ OPENSSL_clear_free(ec->key, ec->keylen);
ec->key = key;
ec->keylen = keylen;