diff options
author | Tomas Mraz <tomas@openssl.org> | 2021-03-11 18:02:52 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-03-12 15:11:21 +0100 |
commit | 12b4e5821d59b5d0c35f830e078d842583be6486 (patch) | |
tree | eeb47b387a932c61534473309439f075e641e443 /crypto/bio | |
parent | Update CHANGES with info about AuthEnvelopedData addition (diff) | |
download | openssl-12b4e5821d59b5d0c35f830e078d842583be6486.tar.xz openssl-12b4e5821d59b5d0c35f830e078d842583be6486.zip |
Use OPENSSL_init_crypto(OPENSSL_INIT_BASE_ONLY, NULL) in libcrypto
Calling OPENSSL_init_crypto(0, NULL) is a no-op and will
not properly initialize thread local handling.
Only the calls that are needed to initialize thread locals
are kept, the rest of the no-op calls are removed.
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14497)
Diffstat (limited to 'crypto/bio')
-rw-r--r-- | crypto/bio/b_addr.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/crypto/bio/b_addr.c b/crypto/bio/b_addr.c index 841cc58100..635f84e183 100644 --- a/crypto/bio/b_addr.c +++ b/crypto/bio/b_addr.c @@ -616,8 +616,6 @@ static int addrinfo_wrap(int family, int socktype, DEFINE_RUN_ONCE_STATIC(do_bio_lookup_init) { - if (!OPENSSL_init_crypto(0, NULL)) - return 0; bio_lookup_lock = CRYPTO_THREAD_lock_new(); return bio_lookup_lock != NULL; } |