Change condition on wiping tag buffer

Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
Thomas Daubney 2024-02-01 16:16:27 +00:00
parent 1ffc5cb4a5
commit 03f1ea3624

View File

@ -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);
}