pkcs12: Make sure to wipe potentially decrypted PKCS#7 data
This commit is contained in:
@@ -307,10 +307,10 @@ static bool parse_authenticated_safe(private_pkcs12_t *this, chunk_t blob)
|
||||
if (!parse_safe_contents(this, parser->get_level(parser)+1,
|
||||
data))
|
||||
{
|
||||
chunk_free(&data);
|
||||
chunk_clear(&data);
|
||||
goto end;
|
||||
}
|
||||
chunk_free(&data);
|
||||
chunk_clear(&data);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user