pkcs7: Make sure to wipe decrypted content

This commit is contained in:
Tobias Brunner committed 2023-07-26 15:08:33 +02:00
1 parent ad8484a6cc
commit b4694aef49
2 files changed
+2 -2

No files matched your search

@@ -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);
}