summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-06-26 10:22:53 +1000
committerDamien Miller <djm@mindrot.org>2000-06-26 10:22:53 +1000
commitc0fd17fdca5853c0c6bfdfc364d8c5418dcab86b (patch)
tree7caa4cd021c8fa7318379d2ac0993d59fb02750f /channels.c
parent8dd33fd1d543ce94f291bb1e580b49600b1e39a3 (diff)
downloadopenssh-git-c0fd17fdca5853c0c6bfdfc364d8c5418dcab86b.tar.gz
- 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>
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels.c b/channels.c
index 038670da..3710b2fd 100644
--- a/channels.c
+++ b/channels.c
@@ -17,7 +17,7 @@
*/
#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 "packet.h"
@@ -135,7 +135,7 @@ Channel *
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;
}