mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-20 03:39:58 +00:00
Revert change to return behaviour in psa_reserve_free_key_slot
This change was a mistake, we still need to wipe the pointers here. Signed-off-by: Ryan Everett <ryan.everett@arm.com>
This commit is contained in:
parent
dfe8bf86a8
commit
709120a9ce
@ -199,7 +199,7 @@ psa_status_t psa_reserve_free_key_slot(psa_key_id_t *volatile_key_id,
|
|||||||
status = psa_key_slot_state_transition(selected_slot, PSA_SLOT_EMPTY,
|
status = psa_key_slot_state_transition(selected_slot, PSA_SLOT_EMPTY,
|
||||||
PSA_SLOT_FILLING);
|
PSA_SLOT_FILLING);
|
||||||
if (status != PSA_SUCCESS) {
|
if (status != PSA_SUCCESS) {
|
||||||
return status;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
*volatile_key_id = PSA_KEY_ID_VOLATILE_MIN +
|
*volatile_key_id = PSA_KEY_ID_VOLATILE_MIN +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user