Off-by-one-error corrected.
PR: 235
This commit is contained in:
parent
86e8b56ac4
commit
e5f4d8279d
@ -523,7 +523,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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user