- markus@cvs.openbsd.org 2002/03/04 19:37:58
[channels.c] off by one; thanks to joost@pine.nl
This commit is contained in:
parent
6b28c35a04
commit
795488785e
|
@ -58,6 +58,9 @@
|
||||||
[ssh-keyscan.c]
|
[ssh-keyscan.c]
|
||||||
handle connection close during read of protocol version string.
|
handle connection close during read of protocol version string.
|
||||||
fixes erroneous "bad greeting". ok markus@
|
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
|
20020226
|
||||||
- (tim) Bug 12 [configure.ac] add sys/bitypes.h to int64_t tests
|
- (tim) Bug 12 [configure.ac] add sys/bitypes.h to int64_t tests
|
||||||
|
@ -7789,4 +7792,4 @@
|
||||||
- Wrote replacements for strlcpy and mkdtemp
|
- Wrote replacements for strlcpy and mkdtemp
|
||||||
- Released 1.0pre1
|
- Released 1.0pre1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.1905 2002/03/05 01:54:52 mouring Exp $
|
$Id: ChangeLog,v 1.1906 2002/03/05 01:57:44 mouring Exp $
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#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 "ssh.h"
|
||||||
#include "ssh1.h"
|
#include "ssh1.h"
|
||||||
|
@ -146,7 +146,7 @@ channel_lookup(int id)
|
||||||
{
|
{
|
||||||
Channel *c;
|
Channel *c;
|
||||||
|
|
||||||
if (id < 0 || id > channels_alloc) {
|
if (id < 0 || id >= channels_alloc) {
|
||||||
log("channel_lookup: %d: bad id", id);
|
log("channel_lookup: %d: bad id", id);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue