mirror of
https://github.com/openssl/openssl.git
synced 2025-01-10 12:03:34 +08:00
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)
This commit is contained in:
parent
55833a8de7
commit
4128136a28
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user