Fix init_thread_stop
authorMatt Caswell <matt@openssl.org>
Wed, 15 Jan 2020 18:10:03 +0000 (18:10 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 20 Jan 2020 14:41:36 +0000 (14:41 +0000)
commit2dd04ca881414779e847a21e6be4e428257c25f1
tree88bf765031e7c103af11a2289536795f06df4095
parentbddbfae1cd667f0c1458deff98cbc03171e90d5a
Fix init_thread_stop

init_thread_stop maintains a linked lists of handlers that it should
call when a thread finishes. The linked list handling wasn't quite right
resulting in corrupted data.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/10863)
crypto/initthread.c