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:10:02 +0000 |
commit | faafe140a856ecbe743a0533a2d7117ece040f29 (patch) | |
tree | 498093f5aa36f65a911aa7dc88edc7ec606c9199 /crypto/cms | |
parent | 3b16099e0c8df1fd5094ad4490d87ab31516bf25 (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)
(cherry picked from commit 4128136a28c3b7d3878daed728c49f18eb950adc)
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 eac9c2fc86..26e3bdcf9e 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; |