diff options
author | Arran Cudbard-Bell <a.cudbardb@freeradius.org> | 2022-03-01 21:10:47 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2022-03-10 14:54:07 +0100 |
commit | 43ed2429566f27a2fb030316201c0c7af5a2b966 (patch) | |
tree | f3c3e8003a269b9a1a9d229b0bf4a80575f234dc /crypto/async/async.c | |
parent | async_posix: Allow custom stack allocation functions to be specified for POSI... (diff) | |
download | openssl-43ed2429566f27a2fb030316201c0c7af5a2b966.tar.xz openssl-43ed2429566f27a2fb030316201c0c7af5a2b966.zip |
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 '')
-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) |