From 43ed2429566f27a2fb030316201c0c7af5a2b966 Mon Sep 17 00:00:00 2001 From: Arran Cudbard-Bell Date: Tue, 1 Mar 2022 14:10:47 -0600 Subject: async_posix: Make ASYNC_set_mem_functions threadsafe Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/17762) --- crypto/async/async.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crypto/async/async.c') diff --git a/crypto/async/async.c b/crypto/async/async.c index a320d455b7..d0e383536c 100644 --- a/crypto/async/async.c +++ b/crypto/async/async.c @@ -340,13 +340,14 @@ int async_init(void) return 0; } - return 1; + return async_local_init(); } void async_deinit(void) { CRYPTO_THREAD_cleanup_local(&ctxkey); CRYPTO_THREAD_cleanup_local(&poolkey); + async_local_deinit(); } int ASYNC_init_thread(size_t max_size, size_t init_size) -- cgit v1.2.3