projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acc7b9f
)
Thread: Avoid a NULL dereference after failed initialisation.
author
Pauli
<paul.dale@oracle.com>
Thu, 21 Nov 2019 03:15:21 +0000
(13:15 +1000)
committer
Pauli
<paul.dale@oracle.com>
Fri, 22 Nov 2019 05:26:33 +0000
(15:26 +1000)
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10493)
crypto/initthread.c
patch
|
blob
|
history
diff --git
a/crypto/initthread.c
b/crypto/initthread.c
index da30d59fecad89cddabaced262bcee1439d3d66c..a5f770e200508652722f12ff98ae3b06a2bb44dc 100644
(file)
--- a/
crypto/initthread.c
+++ b/
crypto/initthread.c
@@
-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++) {