crypto/init.c: use destructor_key even as guard in OPENSSL_thread_stop.
authorAndy Polyakov <appro@openssl.org>
Fri, 20 Jul 2018 11:23:42 +0000 (13:23 +0200)
committerAndy Polyakov <appro@openssl.org>
Wed, 25 Jul 2018 14:37:35 +0000 (16:37 +0200)
commit80ae7285e1994d35c84519bf9e038b11d9942875
tree077bf94bf38f4898d24d1761963f2f04b7ea3308
parentceb8e32cbc9f6ddd17c5639a721f5314eb1f3acc
crypto/init.c: use destructor_key even as guard in OPENSSL_thread_stop.

Problem was that Windows threads that were terminating before libcrypto
was initialized were referencing uninitialized or possibly even
unrelated thread local storage index.

Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/6752)
crypto/init.c