提交 3478a210 编写于 作者: P Pauli

Thread: Avoid a NULL dereference after failed initialisation.

Reviewed-by: NRichard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10493)
上级 acc7b9fb
......@@ -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++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册