diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-03-05 01:57:44 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-03-05 01:57:44 +0000 |
commit | 795488785e1e1273c628e25fb91a45e048984bb3 (patch) | |
tree | 1c45ac0c2fefd7cc64e59888b9e5f9940f85963d /channels.c | |
parent | 6b28c35a04069c5b19e541c86e767da5841422d0 (diff) |
- markus@cvs.openbsd.org 2002/03/04 19:37:58
[channels.c]
off by one; thanks to joost@pine.nl
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |