提交 4128136a 编写于 作者: M Mansour Ahmadi 提交者: Matt Caswell

Add missing OPENSSL_clear_free before using ec->key

Fixes #7657
Reviewed-by: NNicola Tuveri <nic.tuv@gmail.com>
Reviewed-by: NMatt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7877)
上级 55833a8d
...@@ -373,6 +373,7 @@ int cms_RecipientInfo_pwri_crypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri, ...@@ -373,6 +373,7 @@ int cms_RecipientInfo_pwri_crypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri,
goto err; goto err;
} }
OPENSSL_clear_free(ec->key, ec->keylen);
ec->key = key; ec->key = key;
ec->keylen = keylen; ec->keylen = keylen;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册