[openssl] master update
Dr. Paul Dale
pauli at openssl.org
Fri Nov 22 05:27:21 UTC 2019
The branch master has been updated
via 3478a2102e8bfc63f20e22826ab39b407ff43f62 (commit)
from acc7b9fb5c162c2ca522e5e1e09d1efbde8dc6a0 (commit)
- Log -----------------------------------------------------------------
commit 3478a2102e8bfc63f20e22826ab39b407ff43f62
Author: Pauli <paul.dale at oracle.com>
Date: Thu Nov 21 13:15:21 2019 +1000
Thread: Avoid a NULL dereference after failed initialisation.
Reviewed-by: Richard Levitte <levitte at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10493)
-----------------------------------------------------------------------
Summary of changes:
crypto/initthread.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/crypto/initthread.c b/crypto/initthread.c
index da30d59fec..a5f770e200 100644
--- 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++) {
More information about the openssl-commits
mailing list