summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
authormouring <mouring>2002-03-05 01:57:44 +0000
committermouring <mouring>2002-03-05 01:57:44 +0000
commitadd2d100642dd2e966caf9b28907b896f14f3958 (patch)
treeb1e6c336c15a7a557d87eb3bb536856b4445853e /channels.c
parent7dd3ce199fb7c640988faa2b64a6952dfc70296b (diff)
downloadopenssh-add2d100642dd2e966caf9b28907b896f14f3958.tar.gz
- 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels.c b/channels.c
index d5a24311..2b1f33f3 100644
--- a/channels.c
+++ b/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;
}