mirror of
https://github.com/openssl/openssl.git
synced 2025-01-26 20:03:32 +08:00
Thread: Avoid a NULL dereference after failed initialisation.
Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/10493)
This commit is contained in:
parent
acc7b9fb5c
commit
3478a2102e
@ -380,6 +380,8 @@ static int init_thread_deregister(void *index, int all)
|
||||
int i;
|
||||
|
||||
gtr = get_global_tevent_register();
|
||||
if (gtr == NULL)
|
||||
return 0;
|
||||
if (!all)
|
||||
CRYPTO_THREAD_write_lock(gtr->lock);
|
||||
for (i = 0; i < sk_THREAD_EVENT_HANDLER_PTR_num(gtr->skhands); i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user