fix submitted by Andy Schneider <andy.schneider@bjss.co.uk>

This commit is contained in:
Bodo Möller
2001-11-23 20:57:59 +00:00
parent 65129e1d57
commit f717e5460f
2 changed files with 11 additions and 0 deletions

View File

@@ -228,7 +228,10 @@ void CRYPTO_destroy_dynlockid(int i)
CRYPTO_w_lock(CRYPTO_LOCK_DYNLOCK);
if (dyn_locks == NULL || i >= sk_CRYPTO_dynlock_num(dyn_locks))
{
CRYPTO_w_unlock(CRYPTO_LOCK_DYNLOCK);
return;
}
pointer = sk_CRYPTO_dynlock_value(dyn_locks, i);
if (pointer != NULL)
{