wolfssl: Fix memory leak on failed ICV verification if not using in-place decryption
Fixes: c92eade82c ("wolfssl: Add wolfSSL plugin for cryptographic implementations")
This commit is contained in:
@@ -236,7 +236,10 @@ METHOD(aead_t, decrypt, bool,
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (!success && plain)
|
||||
{
|
||||
chunk_free(plain);
|
||||
}
|
||||
memwipe(nonce.ptr, nonce.len);
|
||||
return success;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user