Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openssl/openssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2001-11-23 23:56:27 +0300
committerBodo Möller <bodo@openssl.org>2001-11-23 23:56:27 +0300
commitdae0b520a094df1fcb2639ab8cf7549e913f01f1 (patch)
tree238953d263d866ab3df05be219d3d4501157d5fb /crypto/cryptlib.c
parentf1a185a04a99b65758c69c57c08a15a32bd0debd (diff)
fixes submitted by Andy Schneider <andy.schneider@bjss.co.uk>
Diffstat (limited to 'crypto/cryptlib.c')
-rw-r--r--crypto/cryptlib.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c
index 5231f712bf..821b16adae 100644
--- a/crypto/cryptlib.c
+++ b/crypto/cryptlib.c
@@ -229,7 +229,10 @@ void CRYPTO_destroy_dynlockid(int i)
CRYPTO_w_lock(CRYPTO_LOCK_DYNLOCK);
if (dyn_locks == NULL || i >= sk_CRYPTO_dynlock_num(dyn_locks))
- return;
+ {
+ CRYPTO_w_lock(CRYPTO_LOCK_DYNLOCK);
+ return;
+ }
pointer = sk_CRYPTO_dynlock_value(dyn_locks, i);
if (pointer != NULL)
{