-----BEGIN PGP SIGNED MESSAGE-----

Synopsis: Off-by-one error in openssh session
NetBSD versions: 1.5,1.5.1,1.5.2
Thanks to: Jun-ichiro itojun Hagino
Reported in NetBSD Security Advisory: NetBSD-SA2002-004

*** channels.c.orig	Tue Mar 12 23:27:16 2002
- --- channels.c	Tue Mar 12 23:41:14 2002
*************** Channel *
*** 160,166 ****
  channel_lookup(int id)
  {
  	Channel *c;
! 	if (id < 0 || id > channels_alloc) {
  		log("channel_lookup: %d: bad id", id);
  		return NULL;
  	}
- --- 160,166 ----
  channel_lookup(int id)
  {
  	Channel *c;
! 	if (id < 0 || id >= channels_alloc) {
  		log("channel_lookup: %d: bad id", id);
  		return NULL;
  	}
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (NetBSD)
Comment: For info see http://www.gnupg.org

iQCVAwUBPI7mOz5Ru2/4N2IFAQFfRAP7BRi4dBNYVYxYUkQaowPMu2IKG5lfxl8/
xjCWjungQ8qjPEk7C5hX/aRe2ehH3seukuUiDPljSW680O4kQLD40c497KqjQ+VN
COhWhuqsCv9ufcMrPONjFayLpmJew+bvL1nKT0wWEimVobRRAUeU1nWyJ6Z5T3rs
lTmTM9rsJKQ=
=+ExR
-----END PGP SIGNATURE-----