From f2d8dddd4640d22e383e105fddce33f8c86fea04 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 4 Nov 2002 11:30:30 +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 4580d04c2c..bed102a2ec 100644 --- a/crypto/cryptlib.c +++ b/crypto/cryptlib.c @@ -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)); -- 2.25.1