mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-10 13:14:30 +00:00
Change condition on wiping tag buffer
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
parent
1ffc5cb4a5
commit
03f1ea3624
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user