diff options
author | Mansour Ahmadi <m.ahmadi@northeastern.edu> | 2018-12-11 16:18:21 -0500 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2018-12-13 10:04:57 +0000 |
commit | 4128136a28c3b7d3878daed728c49f18eb950adc (patch) | |
tree | 8eb623cdc2227cb050d5416da71cd77ab33ea8cc /crypto/cms | |
parent | 55833a8de70589a5000044b6291e190f5a3826ae (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.c | 1 |
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; |