mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-27 15:54:22 +02:00
- OpenBSD CVS update
- provos@cvs.openbsd.org 2000/06/25 14:17:58 [channels.c] correct check for bad channel ids; from Wei Dai <weidai@eskimo.com>
This commit is contained in:
parent
8dd33fd1d5
commit
c0fd17fdca
@ -1,5 +1,9 @@
|
|||||||
20000626
|
20000626
|
||||||
- Better fix to aclocal tests from Garrick James <garrick@james.net>
|
- (djm) Better fix to aclocal tests from Garrick James <garrick@james.net>
|
||||||
|
- OpenBSD CVS update
|
||||||
|
- provos@cvs.openbsd.org 2000/06/25 14:17:58
|
||||||
|
[channels.c]
|
||||||
|
correct check for bad channel ids; from Wei Dai <weidai@eskimo.com>
|
||||||
|
|
||||||
20000623
|
20000623
|
||||||
- (djm) Use sa_family_t in prototype for rresvport_af. Patch from
|
- (djm) Use sa_family_t in prototype for rresvport_af. Patch from
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$OpenBSD: channels.c,v 1.62 2000/06/20 01:39:39 markus Exp $");
|
RCSID("$OpenBSD: channels.c,v 1.63 2000/06/25 20:17:57 provos Exp $");
|
||||||
|
|
||||||
#include "ssh.h"
|
#include "ssh.h"
|
||||||
#include "packet.h"
|
#include "packet.h"
|
||||||
@ -135,7 +135,7 @@ Channel *
|
|||||||
channel_lookup(int id)
|
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…
x
Reference in New Issue
Block a user