]> andersk Git - openssh.git/blobdiff - nchan.c
- stevesk@cvs.openbsd.org 2002/02/04 00:53:39
[openssh.git] / nchan.c
diff --git a/nchan.c b/nchan.c
index 070f14a7ae3c52b2440a81b0be9bfcd6d6c05396..fc8e7f18de6d6ee2bba07c2c3d619795d5cdace3 100644 (file)
--- a/nchan.c
+++ b/nchan.c
@@ -23,7 +23,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: nchan.c,v 1.43 2002/01/14 13:57:03 markus Exp $");
+RCSID("$OpenBSD: nchan.c,v 1.44 2002/01/21 23:27:10 markus Exp $");
 
 #include "ssh1.h"
 #include "ssh2.h"
@@ -364,6 +364,9 @@ chan_rcvd_ieof(Channel *c)
                chan_rcvd_eof2(c);
        else
                chan_rcvd_ieof1(c);
+       if (c->ostate == CHAN_OUTPUT_WAIT_DRAIN &&
+           buffer_len(&c->output) == 0)
+               chan_obuf_empty(c);
 }
 void
 chan_rcvd_oclose(Channel *c)
This page took 0.290264 seconds and 4 git commands to generate.