]> andersk Git - openssh.git/commitdiff
- markus@cvs.openbsd.org 2002/03/04 19:37:58
authormouring <mouring>
Tue, 5 Mar 2002 01:57:44 +0000 (01:57 +0000)
committermouring <mouring>
Tue, 5 Mar 2002 01:57:44 +0000 (01:57 +0000)
     [channels.c]
     off by one; thanks to joost@pine.nl

ChangeLog
channels.c

index a29972f7a16f5904e4b55ed884a6bc2fb400ef40..d8740845281dccb62a3ff51ee75a7a2e3fb6142c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -58,6 +58,9 @@
      [ssh-keyscan.c]
      handle connection close during read of protocol version string.
      fixes erroneous "bad greeting".  ok markus@
+   - markus@cvs.openbsd.org 2002/03/04 19:37:58
+     [channels.c]
+     off by one; thanks to joost@pine.nl
 
 20020226
  - (tim) Bug 12 [configure.ac] add sys/bitypes.h to int64_t tests
index d5a24311c96b7f8244c12028cba3c621887c5dae..2b1f33f34792d474387854accef728fbe1794d6c 100644 (file)
@@ -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;
        }
This page took 0.795093 seconds and 5 git commands to generate.