From e5f4d8279dccad0f6dde324f52333291739dcca3 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 4 Nov 2002 11:30:47 +0000 Subject: [PATCH] Off-by-one-error corrected. PR: 235 --- crypto/cryptlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.34.1