mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-09 19:46:33 +00:00
ssl_tls: add key destruction upon generator failure
This commit is contained in:
parent
c929a82a6b
commit
70737ca827
|
@ -550,7 +550,10 @@ static int tls_prf_generic( mbedtls_md_type_t md_type,
|
|||
|
||||
status = psa_generator_abort( &generator );
|
||||
if( status != PSA_SUCCESS )
|
||||
{
|
||||
psa_destroy_key( master_slot );
|
||||
return( MBEDTLS_ERR_SSL_HW_ACCEL_FAILED );
|
||||
}
|
||||
|
||||
status = psa_destroy_key( master_slot );
|
||||
if( status != PSA_SUCCESS )
|
||||
|
|
Loading…
Reference in a new issue