summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/channels.c b/channels.c
index 03f12d396..73bc10a1a 100644
--- a/channels.c
+++ b/channels.c
@@ -39,7 +39,7 @@
39 */ 39 */
40 40
41#include "includes.h" 41#include "includes.h"
42RCSID("$OpenBSD: channels.c,v 1.160 2002/01/16 13:17:51 markus Exp $"); 42RCSID("$OpenBSD: channels.c,v 1.161 2002/01/21 23:27:10 markus Exp $");
43 43
44#include "ssh.h" 44#include "ssh.h"
45#include "ssh1.h" 45#include "ssh1.h"
@@ -1793,6 +1793,8 @@ channel_input_ieof(int type, u_int32_t seq, void *ctxt)
1793 if (c->force_drain && c->istate == CHAN_INPUT_OPEN) { 1793 if (c->force_drain && c->istate == CHAN_INPUT_OPEN) {
1794 debug("channel %d: FORCE input drain", c->self); 1794 debug("channel %d: FORCE input drain", c->self);
1795 c->istate = CHAN_INPUT_WAIT_DRAIN; 1795 c->istate = CHAN_INPUT_WAIT_DRAIN;
1796 if (buffer_len(&c->input) == 0)
1797 chan_ibuf_empty(c);
1796 } 1798 }
1797 1799
1798} 1800}