diff options
author | Damien Miller <djm@mindrot.org> | 2004-06-18 22:23:22 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2004-06-18 22:23:22 +1000 |
commit | 3bbd878c2ec2b337b9e5b9455e0a2bd1902a0824 (patch) | |
tree | b5d4eae0c95ab46b30b41f3f2f4611d8816adfda /channels.c | |
parent | b8ea24868f0347ea6d5116cbd93197c1ab0e942b (diff) |
- djm@cvs.openbsd.org 2004/06/18 11:11:54
[channels.c clientloop.c]
Don't explode in clientloop when we receive a bogus channel id, but
also don't generate them to begin with; ok markus@
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -39,7 +39,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: channels.c,v 1.205 2004/06/14 01:44:38 djm Exp $"); +RCSID("$OpenBSD: channels.c,v 1.206 2004/06/18 11:11:54 djm Exp $"); #include "ssh.h" #include "ssh1.h" @@ -487,7 +487,7 @@ channel_find_open(void) for (i = 0; i < channels_alloc; i++) { c = channels[i]; - if (c == NULL) + if (c == NULL || c->remote_id < 0) continue; switch (c->type) { case SSH_CHANNEL_CLOSED: |