diff options
author | Arran Cudbard-Bell <a.cudbardb@freeradius.org> | 2022-03-01 14:10:47 -0600 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2022-03-10 13:54:07 +0000 |
commit | 43ed2429566f27a2fb030316201c0c7af5a2b966 (patch) | |
tree | f3c3e8003a269b9a1a9d229b0bf4a80575f234dc /crypto/async/async.c | |
parent | f6f56f4776727e18d4dd5490e3b507bae068013a (diff) |
async_posix: Make ASYNC_set_mem_functions threadsafe
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17762)
Diffstat (limited to 'crypto/async/async.c')
-rw-r--r-- | crypto/async/async.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) |