提交 6bc7bad0 编写于 作者: M Matt Caswell

Fix windows thread stop code

The windows thread stop code was erroneously not just deleting the thread
local variable on thread stop, but also deleting the thread local *key*
(thus removing thread local data for *all* threads in one go!).
Reviewed-by: NRich Salz <rsalz@openssl.org>
上级 4015adf0
...@@ -506,7 +506,6 @@ static void ossl_init_thread_stop(struct thread_local_inits_st *locals) ...@@ -506,7 +506,6 @@ static void ossl_init_thread_stop(struct thread_local_inits_st *locals)
} }
OPENSSL_free(locals); OPENSSL_free(locals);
ossl_init_thread_stop_cleanup();
} }
void OPENSSL_thread_stop(void) void OPENSSL_thread_stop(void)
...@@ -599,6 +598,8 @@ void OPENSSL_cleanup(void) ...@@ -599,6 +598,8 @@ void OPENSSL_cleanup(void)
ERR_free_strings(); ERR_free_strings();
} }
ossl_init_thread_stop_cleanup();
#ifdef OPENSSL_INIT_DEBUG #ifdef OPENSSL_INIT_DEBUG
fprintf(stderr, "OPENSSL_INIT: OPENSSL_INIT_library_stop: " fprintf(stderr, "OPENSSL_INIT: OPENSSL_INIT_library_stop: "
"CRYPTO_cleanup_all_ex_data()\n"); "CRYPTO_cleanup_all_ex_data()\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册