summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2002-03-04 19:37:59 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2002-03-04 19:37:59 +0000
commit3b5f7aa490d3a72ec74e71803129bd911bfedcb3 (patch)
tree97f790fb3450085e71b34bd8a87efdadc6a8e40c /usr.bin/ssh
parent08389aa80adac81cd6a34da4012768c2be8ee05d (diff)
off by one; thanks to joost@pine.nl
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r--usr.bin/ssh/channels.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/channels.c b/usr.bin/ssh/channels.c
index 322d9453d06..841a8990e0d 100644
--- a/usr.bin/ssh/channels.c
+++ b/usr.bin/ssh/channels.c
@@ -39,7 +39,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: channels.c,v 1.170 2002/02/27 21:23:13 stevesk Exp $");
+RCSID("$OpenBSD: channels.c,v 1.171 2002/03/04 19:37:58 markus Exp $");
#include "ssh.h"
#include "ssh1.h"
@@ -146,7 +146,7 @@ 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;
}