diff options
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; |