mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-05-09 03:04:24 +02:00
Change condition on wiping tag buffer
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
@@ -2734,7 +2734,7 @@ exit:
|
||||
operation->mac_size = 0;
|
||||
}
|
||||
|
||||
if (status != PSA_ERROR_INSUFFICIENT_MEMORY) {
|
||||
if (mac != NULL) {
|
||||
psa_wipe_tag_output_buffer(mac, status, mac_size, *mac_length);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user