]> andersk Git - openssh.git/commitdiff
- markus@cvs.openbsd.org 2002/01/10 12:47:59
authordjm <djm>
Tue, 22 Jan 2002 12:22:44 +0000 (12:22 +0000)
committerdjm <djm>
Tue, 22 Jan 2002 12:22:44 +0000 (12:22 +0000)
     [nchan.c]
     more unused code (with channels.c:1.156)

ChangeLog
nchan.c

index 6c801dfc5fc9004307b5475a46fb014765bd9612..101dff699c25b84cfbcac4f8a0864731c39f3cb1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
    - markus@cvs.openbsd.org 2002/01/10 12:38:26
      [nchan.c]
      remove dead code (skip drain)
+   - markus@cvs.openbsd.org 2002/01/10 12:47:59
+     [nchan.c]
+     more unused code (with channels.c:1.156)
 
 
 20020121
diff --git a/nchan.c b/nchan.c
index 79fff66c8c8ad41e671d2ac8fbd7f7f2e7f41c76..905379b075455741115cd278fb9977605e6785bf 100644 (file)
--- a/nchan.c
+++ b/nchan.c
@@ -23,7 +23,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: nchan.c,v 1.35 2002/01/10 12:38:26 markus Exp $");
+RCSID("$OpenBSD: nchan.c,v 1.36 2002/01/10 12:47:59 markus Exp $");
 
 #include "ssh1.h"
 #include "ssh2.h"
@@ -155,29 +155,6 @@ static void
 chan_rcvd_ieof1(Channel *c)
 {
        debug("channel %d: rcvd ieof", c->self);
-       if (c->type != SSH_CHANNEL_OPEN) {
-               debug("channel %d: non-open", c->self);
-               if (c->istate == CHAN_INPUT_OPEN) {
-                       debug("channel %d: non-open: input open -> wait_oclose",
-                           c->self);
-                       chan_shutdown_read(c);
-                       chan_send_ieof1(c);
-                       c->istate = CHAN_INPUT_WAIT_OCLOSE;
-               } else {
-                       error("channel %d: non-open: istate %d != open",
-                           c->self, c->istate);
-               }
-               if (c->ostate == CHAN_OUTPUT_OPEN) {
-                       debug("channel %d: non-open: output open -> closed",
-                           c->self);
-                       chan_send_oclose1(c);
-                       c->ostate = CHAN_OUTPUT_CLOSED;
-               } else {
-                       error("channel %d: non-open: ostate %d != open",
-                           c->self, c->ostate);
-               }
-               return;
-       }
        switch (c->ostate) {
        case CHAN_OUTPUT_OPEN:
                debug("channel %d: output open -> drain", c->self);
This page took 0.056215 seconds and 5 git commands to generate.