summaryrefslogtreecommitdiffstats
path: root/channels.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2004-06-18 22:23:22 +1000
committerDamien Miller <djm@mindrot.org>2004-06-18 22:23:22 +1000
commit3bbd878c2ec2b337b9e5b9455e0a2bd1902a0824 (patch)
treeb5d4eae0c95ab46b30b41f3f2f4611d8816adfda /channels.c
parentb8ea24868f0347ea6d5116cbd93197c1ab0e942b (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels.c b/channels.c
index 97c1fd31..68d85438 100644
--- a/channels.c
+++ b/channels.c
@@ -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: