1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-12-24 17:41:01 +03:00

psa_crypto_init: set the global initialized flag

This commit is contained in:
Gilles Peskine
2018-03-07 14:16:44 +01:00
committed by itayzafrir
parent 609b6a5b67
commit e4ebc12fcd

View File

@@ -1288,6 +1288,8 @@ psa_status_t psa_crypto_init( void )
if( ret != 0 )
goto exit;
global_data.initialized = 1;
exit:
if( ret != 0 )
mbedtls_psa_crypto_free( );