projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Ensure the thread keys are always allocated in the same order
[openssl.git]
/
crypto
/
bio
/
b_addr.c
diff --git
a/crypto/bio/b_addr.c
b/crypto/bio/b_addr.c
index 9832c0c89c6ad5086a5bf7304f00c0e2ee4e8491..abec7bb8dbba47f04a58945cba8a7b3208a9d955 100644
(file)
--- a/
crypto/bio/b_addr.c
+++ b/
crypto/bio/b_addr.c
@@
-603,7
+603,8
@@
static int addrinfo_wrap(int family, int socktype,
DEFINE_RUN_ONCE_STATIC(do_bio_lookup_init)
{
- OPENSSL_init_crypto(0, NULL);
+ if (!OPENSSL_init_crypto(0, NULL))
+ return 0;
bio_lookup_lock = CRYPTO_THREAD_lock_new();
return bio_lookup_lock != NULL;
}