summaryrefslogtreecommitdiffstats
path: root/crypto/bio/b_addr.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2016-08-20 19:06:43 -0400
committerRich Salz <rsalz@openssl.org>2016-08-21 14:18:09 -0400
commit5a7ad1f08bfccbdad0f20920f9c284bba036fb70 (patch)
tree2632f6f907b85cb583a52335ca9d5e47f9a24829 /crypto/bio/b_addr.c
parent6b1f413c3a8563a53e1b41d48d870c010541c7f5 (diff)
Move BIO index lock creation
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/bio/b_addr.c')
-rw-r--r--crypto/bio/b_addr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/bio/b_addr.c b/crypto/bio/b_addr.c
index 17ab3e4e83..f924e1029f 100644
--- a/crypto/bio/b_addr.c
+++ b/crypto/bio/b_addr.c
@@ -19,7 +19,6 @@
#include <ctype.h>
CRYPTO_RWLOCK *bio_lookup_lock;
-extern CRYPTO_RWLOCK *bio_type_lock;
static CRYPTO_ONCE bio_lookup_init = CRYPTO_ONCE_STATIC_INIT;
/*
@@ -606,8 +605,7 @@ static int addrinfo_wrap(int family, int socktype,
DEFINE_RUN_ONCE_STATIC(do_bio_lookup_init)
{
bio_lookup_lock = CRYPTO_THREAD_lock_new();
- bio_type_lock = CRYPTO_THREAD_lock_new();
- return bio_lookup_lock != NULL && bio_type_lock != NULL;
+ return bio_lookup_lock != NULL;
}
/*-