Skip to content

Commit ee32d9f

Browse files
committed
fixup! psa: Don't abort when operations are invalid
1 parent 7833ff4 commit ee32d9f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

library/psa_crypto.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2156,7 +2156,6 @@ psa_status_t psa_mac_update( psa_mac_operation_t *operation,
21562156
return( PSA_ERROR_BAD_STATE );
21572157
}
21582158

2159-
cleanup:
21602159
if( status != PSA_SUCCESS )
21612160
psa_mac_abort( operation );
21622161
return( status );
@@ -2269,7 +2268,6 @@ psa_status_t psa_mac_sign_finish( psa_mac_operation_t *operation,
22692268

22702269
status = psa_mac_finish_internal( operation, mac, mac_size );
22712270

2272-
cleanup:
22732271
if( status == PSA_SUCCESS )
22742272
{
22752273
status = psa_mac_abort( operation );

0 commit comments

Comments
 (0)