pkcs7: Make sure to wipe decrypted content

This commit is contained in:
Tobias Brunner
2023-07-26 15:08:33 +02:00
parent ad8484a6cc
commit b4694aef49
2 changed files with 2 additions and 2 deletions
@@ -170,7 +170,7 @@ METHOD(container_t, get_encoding, bool,
METHOD(container_t, destroy, void,
private_pkcs7_encrypted_data_t *this)
{
free(this->content.ptr);
chunk_clear(&this->content);
free(this->encoding.ptr);
free(this);
}
@@ -359,7 +359,7 @@ METHOD(container_t, get_encoding, bool,
METHOD(container_t, destroy, void,
private_pkcs7_enveloped_data_t *this)
{
free(this->content.ptr);
chunk_clear(&this->content);
free(this->encoding.ptr);
free(this);
}