Commit bf7ae750 authored by Bernd Edlinger's avatar Bernd Edlinger
Browse files

Don't cleanup uninitialized thread local slots



Fixes: #6120

Reviewed-by: default avatarKurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/6123)
parent 272c0df8
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -912,12 +912,14 @@ err1:
/* Clean up the global DRBGs before exit */
void rand_drbg_cleanup_int(void)
{
    if (master_drbg != NULL) {
        RAND_DRBG_free(master_drbg);
        master_drbg = NULL;

        CRYPTO_THREAD_cleanup_local(&private_drbg);
        CRYPTO_THREAD_cleanup_local(&public_drbg);
    }
}

void drbg_delete_thread_state()
{