Recent changes from 0.9.6-stable.

This commit is contained in:
Richard Levitte
2002-11-06 17:45:24 +00:00
parent 53b80e2e43
commit 3ba2b94a6b
5 changed files with 12 additions and 5 deletions

View File

@@ -460,7 +460,7 @@ const char *CRYPTO_get_lock_name(int type)
return("dynamic");
else if (type < CRYPTO_NUM_LOCKS)
return(lock_names[type]);
else if (type-CRYPTO_NUM_LOCKS >= sk_num(app_locks))
else if (type-CRYPTO_NUM_LOCKS > sk_num(app_locks))
return("ERROR");
else
return(sk_value(app_locks,type-CRYPTO_NUM_LOCKS));