diff options
author | miod <> | 2003-09-22 21:39:40 +0000 |
---|---|---|
committer | miod <> | 2003-09-22 21:39:40 +0000 |
commit | d7092c66f5a4c3ecd743c01aaca08c721d742a19 (patch) | |
tree | f8c0fcc5b649550f65edbdf5db85e25c79e8440e /src/lib | |
parent | 76b3a44fabddcab6be41539dd5dc72cd612e472b (diff) | |
download | openbsd-d7092c66f5a4c3ecd743c01aaca08c721d742a19.tar.gz openbsd-d7092c66f5a4c3ecd743c01aaca08c721d742a19.tar.bz2 openbsd-d7092c66f5a4c3ecd743c01aaca08c721d742a19.zip |
Off-by-ones, from aaron@
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libssl/src/apps/openssl.c | 2 | ||||
-rw-r--r-- | src/lib/libssl/src/ssl/ssltest.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/src/apps/openssl.c b/src/lib/libssl/src/apps/openssl.c index 45af2ba7f9..e0d89d4ab4 100644 --- a/src/lib/libssl/src/apps/openssl.c +++ b/src/lib/libssl/src/apps/openssl.c | |||
@@ -163,7 +163,7 @@ static void lock_dbg_cb(int mode, int type, const char *file, int line) | |||
163 | goto err; | 163 | goto err; |
164 | } | 164 | } |
165 | 165 | ||
166 | if (type < 0 || type > CRYPTO_NUM_LOCKS) | 166 | if (type < 0 || type >= CRYPTO_NUM_LOCKS) |
167 | { | 167 | { |
168 | errstr = "type out of bounds"; | 168 | errstr = "type out of bounds"; |
169 | goto err; | 169 | goto err; |
diff --git a/src/lib/libssl/src/ssl/ssltest.c b/src/lib/libssl/src/ssl/ssltest.c index 5fccc48b71..84c25d2c30 100644 --- a/src/lib/libssl/src/ssl/ssltest.c +++ b/src/lib/libssl/src/ssl/ssltest.c | |||
@@ -291,7 +291,7 @@ static void lock_dbg_cb(int mode, int type, const char *file, int line) | |||
291 | goto err; | 291 | goto err; |
292 | } | 292 | } |
293 | 293 | ||
294 | if (type < 0 || type > CRYPTO_NUM_LOCKS) | 294 | if (type < 0 || type >= CRYPTO_NUM_LOCKS) |
295 | { | 295 | { |
296 | errstr = "type out of bounds"; | 296 | errstr = "type out of bounds"; |
297 | goto err; | 297 | goto err; |