mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
cms: fix memleaks in cms_env.c
CLA: trivial
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16403)
(cherry picked from commit 58e1e397c6
)
This commit is contained in:
parent
597d24e2ab
commit
5327da81f0
@ -951,6 +951,7 @@ static int cms_RecipientInfo_kekri_decrypt(CMS_ContentInfo *cms,
|
||||
}
|
||||
ukeylen += outlen;
|
||||
|
||||
OPENSSL_clear_free(ec->key, ec->keylen);
|
||||
ec->key = ukey;
|
||||
ec->keylen = ukeylen;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user