diff options
author | Damien Miller <djm@mindrot.org> | 2002-01-22 13:22:44 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2002-01-22 13:22:44 +0100 |
commit | 66ac6a43a8d73dd72da4639e79b37241b01b61bd (patch) | |
tree | fb547074e36ee3fc9df8ef86a058c2d1ad13a61f | |
parent | - markus@cvs.openbsd.org 2002/01/10 12:38:26 (diff) | |
download | openssh-66ac6a43a8d73dd72da4639e79b37241b01b61bd.tar.xz openssh-66ac6a43a8d73dd72da4639e79b37241b01b61bd.zip |
- markus@cvs.openbsd.org 2002/01/10 12:47:59
[nchan.c]
more unused code (with channels.c:1.156)
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | nchan.c | 25 |
2 files changed, 5 insertions, 25 deletions
@@ -119,6 +119,9 @@ - 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 @@ -7267,4 +7270,4 @@ - Wrote replacements for strlcpy and mkdtemp - Released 1.0pre1 -$Id: ChangeLog,v 1.1757 2002/01/22 12:22:20 djm Exp $ +$Id: ChangeLog,v 1.1758 2002/01/22 12:22:44 djm Exp $ @@ -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); |