Fixes Coverity
1649566
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/27880)
* (that is assigned via CRYPTO_THREAD_set_local_ex), are still expected
* to be cleaned via the ossl_init_thread_start/stop api.
*/
- CRYPTO_THREAD_init_local(&master_key, clean_master_key);
+ if (!CRYPTO_THREAD_init_local(&master_key, clean_master_key))
+ return;
/*
* Indicate that the key has been set up.