summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--nchan.c25
2 files changed, 5 insertions, 25 deletions
diff --git a/ChangeLog b/ChangeLog
index 2d6a845ff..cdf6376fa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -119,6 +119,9 @@
119 - markus@cvs.openbsd.org 2002/01/10 12:38:26 119 - markus@cvs.openbsd.org 2002/01/10 12:38:26
120 [nchan.c] 120 [nchan.c]
121 remove dead code (skip drain) 121 remove dead code (skip drain)
122 - markus@cvs.openbsd.org 2002/01/10 12:47:59
123 [nchan.c]
124 more unused code (with channels.c:1.156)
122 125
123 126
12420020121 12720020121
@@ -7267,4 +7270,4 @@
7267 - Wrote replacements for strlcpy and mkdtemp 7270 - Wrote replacements for strlcpy and mkdtemp
7268 - Released 1.0pre1 7271 - Released 1.0pre1
7269 7272
7270$Id: ChangeLog,v 1.1757 2002/01/22 12:22:20 djm Exp $ 7273$Id: ChangeLog,v 1.1758 2002/01/22 12:22:44 djm Exp $
diff --git a/nchan.c b/nchan.c
index 79fff66c8..905379b07 100644
--- a/nchan.c
+++ b/nchan.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: nchan.c,v 1.35 2002/01/10 12:38:26 markus Exp $"); 26RCSID("$OpenBSD: nchan.c,v 1.36 2002/01/10 12:47:59 markus Exp $");
27 27
28#include "ssh1.h" 28#include "ssh1.h"
29#include "ssh2.h" 29#include "ssh2.h"
@@ -155,29 +155,6 @@ static void
155chan_rcvd_ieof1(Channel *c) 155chan_rcvd_ieof1(Channel *c)
156{ 156{
157 debug("channel %d: rcvd ieof", c->self); 157 debug("channel %d: rcvd ieof", c->self);
158 if (c->type != SSH_CHANNEL_OPEN) {
159 debug("channel %d: non-open", c->self);
160 if (c->istate == CHAN_INPUT_OPEN) {
161 debug("channel %d: non-open: input open -> wait_oclose",
162 c->self);
163 chan_shutdown_read(c);
164 chan_send_ieof1(c);
165 c->istate = CHAN_INPUT_WAIT_OCLOSE;
166 } else {
167 error("channel %d: non-open: istate %d != open",
168 c->self, c->istate);
169 }
170 if (c->ostate == CHAN_OUTPUT_OPEN) {
171 debug("channel %d: non-open: output open -> closed",
172 c->self);
173 chan_send_oclose1(c);
174 c->ostate = CHAN_OUTPUT_CLOSED;
175 } else {
176 error("channel %d: non-open: ostate %d != open",
177 c->self, c->ostate);
178 }
179 return;
180 }
181 switch (c->ostate) { 158 switch (c->ostate) {
182 case CHAN_OUTPUT_OPEN: 159 case CHAN_OUTPUT_OPEN:
183 debug("channel %d: output open -> drain", c->self); 160 debug("channel %d: output open -> drain", c->self);