From 563c05e2dc77221c4aad740c3b89fc21c84652be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bodo=20M=C3=B6ller?= Date: Thu, 14 Aug 2003 10:33:56 +0000 Subject: fix out-of-bounds check in lock_dbg_cb (was too lose to detect all invalid cases) PR: 674 --- ssl/ssltest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ssl') diff --git a/ssl/ssltest.c b/ssl/ssltest.c index a304398..7bb4152 100644 --- a/ssl/ssltest.c +++ b/ssl/ssltest.c @@ -303,7 +303,7 @@ static void lock_dbg_cb(int mode, int type, const char *file, int line) goto err; } - if (type < 0 || type > CRYPTO_NUM_LOCKS) + if (type < 0 || type >= CRYPTO_NUM_LOCKS) { errstr = "type out of bounds"; goto err; -- cgit v1.1