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 | |
| parent | 76b3a44fabddcab6be41539dd5dc72cd612e472b (diff) | |
| download | openbsd-d7092c66f5a4c3ecd743c01aaca08c721d742a19.tar.gz openbsd-d7092c66f5a4c3ecd743c01aaca08c721d742a19.tar.bz2 openbsd-d7092c66f5a4c3ecd743c01aaca08c721d742a19.zip | |
Off-by-ones, from aaron@
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/src/apps/openssl.c | 2 | ||||
| -rw-r--r-- | src/lib/libssl/src/ssl/ssltest.c | 2 | ||||
| -rw-r--r-- | src/usr.bin/nc/netcat.c | 4 |
3 files changed, 4 insertions, 4 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; |
diff --git a/src/usr.bin/nc/netcat.c b/src/usr.bin/nc/netcat.c index 06871179c0..edf2686607 100644 --- a/src/usr.bin/nc/netcat.c +++ b/src/usr.bin/nc/netcat.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: netcat.c,v 1.62 2003/07/25 21:35:16 millert Exp $ */ | 1 | /* $OpenBSD: netcat.c,v 1.63 2003/09/22 21:39:40 miod Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> | 3 | * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> |
| 4 | * | 4 | * |
| @@ -74,7 +74,7 @@ int zflag; /* Port Scan Flag */ | |||
| 74 | 74 | ||
| 75 | int timeout = -1; | 75 | int timeout = -1; |
| 76 | int family = AF_UNSPEC; | 76 | int family = AF_UNSPEC; |
| 77 | char *portlist[PORT_MAX]; | 77 | char *portlist[PORT_MAX+1]; |
| 78 | 78 | ||
| 79 | ssize_t atomicio(ssize_t (*)(int, void *, size_t), int, void *, size_t); | 79 | ssize_t atomicio(ssize_t (*)(int, void *, size_t), int, void *, size_t); |
| 80 | void atelnet(int, unsigned char *, unsigned int); | 80 | void atelnet(int, unsigned char *, unsigned int); |
