diff options
author | Richard Levitte <levitte@openssl.org> | 2002-11-04 14:30:47 +0300 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-11-04 14:30:47 +0300 |
commit | e5f4d8279dccad0f6dde324f52333291739dcca3 (patch) | |
tree | 1758c4fa98bdc8cd48387245cf39e0a288ff8b02 /crypto | |
parent | 86e8b56ac449bab3efa7979bd0542b5a0c91e572 (diff) |
Off-by-one-error corrected.
PR: 235
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/cryptlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c index e16bbc6626..26c1da7074 100644 --- a/crypto/cryptlib.c +++ b/crypto/cryptlib.c @@ -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)); |