summaryrefslogtreecommitdiffstats
path: root/apps/openssl.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2003-08-14 10:33:56 +0000
committerBodo Möller <bodo@openssl.org>2003-08-14 10:33:56 +0000
commit563c05e2dc77221c4aad740c3b89fc21c84652be (patch)
treedc968676522aea378426043fd08c589da7a2d6dc /apps/openssl.c
parent643ecd2ed6fa6f91d674429fc9fca6e2405946de (diff)
fix out-of-bounds check in lock_dbg_cb (was too lose to detect all
invalid cases) PR: 674
Diffstat (limited to 'apps/openssl.c')
-rw-r--r--apps/openssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/openssl.c b/apps/openssl.c
index 45af2ba7f9..e0d89d4ab4 100644
--- a/apps/openssl.c
+++ b/apps/openssl.c
@@ -163,7 +163,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;