diff options
author | nectar <nectar@FreeBSD.org> | 2002-03-05 14:27:19 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2002-03-05 14:27:19 +0000 |
commit | 6ee5449e7cc990906ddbe37362fa0369cedf9f2c (patch) | |
tree | 9b1702e3985432ec97d73d0f01e1d1ca71f9c68f /crypto | |
parent | 3db3e44430931a21371cadfe8e75d4397dcf2ffc (diff) | |
download | FreeBSD-src-6ee5449e7cc990906ddbe37362fa0369cedf9f2c.zip FreeBSD-src-6ee5449e7cc990906ddbe37362fa0369cedf9f2c.tar.gz |
Fix off-by-one error.
Obtained from: OpenBSD
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/openssh/channels.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/openssh/channels.c b/crypto/openssh/channels.c index d39040b..2d27260 100644 --- a/crypto/openssh/channels.c +++ b/crypto/openssh/channels.c @@ -151,7 +151,7 @@ Channel * channel_lookup(int id) { Channel *c; - if (id < 0 || id > channels_alloc) { + if (id < 0 || id >= channels_alloc) { log("channel_lookup: %d: bad id", id); return NULL; } |