Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/crypto/dist/ssh Pull up revision 1.18 (requested by mas...



details:   https://anonhg.NetBSD.org/src/rev/dfea8ac98213
branches:  netbsd-1-5
changeset: 492940:dfea8ac98213
user:      he <he%NetBSD.org@localhost>
date:      Thu Mar 07 18:09:06 2002 +0000

description:
Pull up revision 1.18 (requested by mason):
  Fix off by one error in channel number check.

diffstat:

 crypto/dist/ssh/channels.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r e914a9681d13 -r dfea8ac98213 crypto/dist/ssh/channels.c
--- a/crypto/dist/ssh/channels.c        Thu Mar 07 18:05:08 2002 +0000
+++ b/crypto/dist/ssh/channels.c        Thu Mar 07 18:09:06 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: channels.c,v 1.1.1.1.2.4 2001/12/11 00:03:16 he Exp $  */
+/*     $NetBSD: channels.c,v 1.1.1.1.2.5 2002/03/07 18:09:06 he Exp $  */
 /*
  * Author: Tatu Ylonen <ylo%cs.hut.fi@localhost>
  * Copyright (c) 1995 Tatu Ylonen <ylo%cs.hut.fi@localhost>, Espoo, Finland
@@ -147,7 +147,7 @@
 {
        Channel *c;
 
-       if (id < 0 || id > channels_alloc) {
+       if (id < 0 || id >= channels_alloc) {
                log("channel_lookup: %d: bad id", id);
                return NULL;
        }



Home | Main Index | Thread Index | Old Index