aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/cryptlib.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>1999-05-14 12:40:39 +0000
committerBodo Möller <bodo@openssl.org>1999-05-14 12:40:39 +0000
commit2a82c7cf252387b67d79383d518fad4a10bb253e (patch)
treea3ae765c754c1f4b54cdc34f64e195159f3883f8 /crypto/cryptlib.c
parentd36bcdf5ca819f1f8efb5eb0897f80864e110ad7 (diff)
downloadopenssl-2a82c7cf252387b67d79383d518fad4a10bb253e.tar.gz
Various bugfixes: Uses locking for some more of the stuff that is not
thread-safe (where thread-safe counterparts are not available on all platforms), and don't memcpy to NULL-pointers Submitted by: Anonymous Reviewed by: Bodo Moeller Also, clean up htons vs. ntohs confusions.
Diffstat (limited to 'crypto/cryptlib.c')
-rw-r--r--crypto/cryptlib.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c
index d601509638..78087655aa 100644
--- a/crypto/cryptlib.c
+++ b/crypto/cryptlib.c
@@ -89,10 +89,12 @@ static const char* lock_names[CRYPTO_NUM_LOCKS] =
"rand",
"debug_malloc",
"BIO",
- "bio_gethostbyname",
+ "gethostbyname",
+ "getservbyname",
+ "readdir",
"RSA_blinding",
-#if CRYPTO_NUM_LOCKS != 22
-# error "Inconsistency between crypto.h and cryptlic.c"
+#if CRYPTO_NUM_LOCKS != 24
+# error "Inconsistency between crypto.h and cryptlib.c"
#endif
};