diff options
author | 2002-03-04 19:37:58 +0000 | |
---|---|---|
committer | 2002-03-04 19:37:58 +0000 | |
commit | 603c28581056737926a7072946480f032c4c93fb (patch) | |
tree | 56cee586b3ea1755e92b3c61098a15e093c7215f | |
parent | handle connection close during read of protocol version string. (diff) | |
download | wireguard-openbsd-603c28581056737926a7072946480f032c4c93fb.tar.xz wireguard-openbsd-603c28581056737926a7072946480f032c4c93fb.zip |
off by one; thanks to joost@pine.nl
-rw-r--r-- | usr.bin/ssh/channels.c | 4 |
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; } |