From e4ebc12fcd1033e78cb2d9e8e0988018e130a886 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Wed, 7 Mar 2018 14:16:44 +0100 Subject: [PATCH] psa_crypto_init: set the global initialized flag --- library/psa_crypto.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/psa_crypto.c b/library/psa_crypto.c index e264990ff..ea25c49a4 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -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( );