]> andersk Git - openssh.git/blobdiff - channels.c
- djm@cvs.openbsd.org 2004/06/18 11:11:54
[openssh.git] / channels.c
index 97c1fd31b948b51ba470585812bdc63a9832aed0..68d854388386a6d303469ebdf98d6c4d83f76e0f 100644 (file)
@@ -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:
This page took 0.044108 seconds and 4 git commands to generate.