mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
Don't cleanup uninitialized thread local slots
Fixes: #6120 Reviewed-by: Kurt Roeckx <kurt@roeckx.be> (Merged from https://github.com/openssl/openssl/pull/6123)
This commit is contained in:
parent
272c0df8e1
commit
bf7ae75000
@ -912,11 +912,13 @@ err1:
|
||||
/* Clean up the global DRBGs before exit */
|
||||
void rand_drbg_cleanup_int(void)
|
||||
{
|
||||
RAND_DRBG_free(master_drbg);
|
||||
master_drbg = NULL;
|
||||
if (master_drbg != NULL) {
|
||||
RAND_DRBG_free(master_drbg);
|
||||
master_drbg = NULL;
|
||||
|
||||
CRYPTO_THREAD_cleanup_local(&private_drbg);
|
||||
CRYPTO_THREAD_cleanup_local(&public_drbg);
|
||||
CRYPTO_THREAD_cleanup_local(&private_drbg);
|
||||
CRYPTO_THREAD_cleanup_local(&public_drbg);
|
||||
}
|
||||
}
|
||||
|
||||
void drbg_delete_thread_state()
|
||||
|
Loading…
Reference in New Issue
Block a user