diff options
author | 2003-09-22 21:39:35 +0000 | |
---|---|---|
committer | 2003-09-22 21:39:35 +0000 | |
commit | 5f9ab6001a42c0e26cac7e4778aa71f884cb689e (patch) | |
tree | bcad484d1a398ee53f67486084e6f037e2702c47 /lib/libssl/src | |
parent | sync (diff) | |
download | wireguard-openbsd-5f9ab6001a42c0e26cac7e4778aa71f884cb689e.tar.xz wireguard-openbsd-5f9ab6001a42c0e26cac7e4778aa71f884cb689e.zip |
Off-by-ones, from aaron@
Diffstat (limited to 'lib/libssl/src')
-rw-r--r-- | lib/libssl/src/apps/openssl.c | 2 | ||||
-rw-r--r-- | lib/libssl/src/ssl/ssltest.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/src/apps/openssl.c b/lib/libssl/src/apps/openssl.c index 45af2ba7f9a..e0d89d4ab41 100644 --- a/lib/libssl/src/apps/openssl.c +++ b/lib/libssl/src/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; diff --git a/lib/libssl/src/ssl/ssltest.c b/lib/libssl/src/ssl/ssltest.c index 5fccc48b717..84c25d2c30a 100644 --- a/lib/libssl/src/ssl/ssltest.c +++ b/lib/libssl/src/ssl/ssltest.c @@ -291,7 +291,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; |