commit | e4ebc12fcd1033e78cb2d9e8e0988018e130a886 | [log] [tgz] |
---|---|---|
author | Gilles Peskine <Gilles.Peskine@arm.com> | Wed Mar 07 14:16:44 2018 +0100 |
committer | itayzafrir <itay.zafrir@arm.com> | Wed Sep 05 11:53:25 2018 +0300 |
tree | ac308b0c3cd32c9401b8badb5f0a91ff39a0f8a7 | |
parent | 609b6a5b67b23ada65442b4a70b114d29105ff49 [diff] |
psa_crypto_init: set the global initialized flag
diff --git a/library/psa_crypto.c b/library/psa_crypto.c index e264990..ea25c49 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c
@@ -1288,6 +1288,8 @@ if( ret != 0 ) goto exit; + global_data.initialized = 1; + exit: if( ret != 0 ) mbedtls_psa_crypto_free( );