Fix cleanup in crypto_tester if AEAD implementation fails
This commit is contained in:
1 parent
5f7f4fa398
commit
a89ebab62e
1 file changed
+4
-1
@@ -451,7 +451,10 @@ METHOD(crypto_tester_t, test_aead, bool,
|
||||
failure:
|
||||
aead->destroy(aead);
|
||||
chunk_free(&cipher);
|
||||
chunk_free(&plain);
|
||||
if (plain.ptr != vector->plain)
|
||||
{
|
||||
chunk_free(&plain);
|
||||
}
|
||||
if (failed)
|
||||
{
|
||||
DBG1(DBG_LIB, "disabled %N[%s]: %s test vector failed",
|
||||
|
||||
Reference in new issue
Block a user