summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2002-01-14 13:41:14 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2002-01-14 13:41:14 +0000
commit3f6ad62906d02eda500e2b2c5e397a5c23f70288 (patch)
tree4196ec9510905e2c15245a69b9c41818135ba24b /usr.bin
parent5af1d56e9058149c108f591e3c2a0594b1587d50 (diff)
remove duplicated code; ok provos@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/nchan.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.bin/ssh/nchan.c b/usr.bin/ssh/nchan.c
index 9495aeb63b0..ae4117f3c5b 100644
--- a/usr.bin/ssh/nchan.c
+++ b/usr.bin/ssh/nchan.c
@@ -23,7 +23,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: nchan.c,v 1.40 2002/01/14 13:40:10 markus Exp $");
+RCSID("$OpenBSD: nchan.c,v 1.41 2002/01/14 13:41:13 markus Exp $");
#include "ssh1.h"
#include "ssh2.h"
@@ -324,9 +324,6 @@ chan_write_failed2(Channel *c)
debug("channel %d: write failed", c->self);
switch (c->ostate) {
case CHAN_OUTPUT_OPEN:
- chan_shutdown_write(c); /* ?? */
- chan_set_ostate(c, CHAN_OUTPUT_CLOSED);
- break;
case CHAN_OUTPUT_WAIT_DRAIN:
chan_shutdown_write(c);
chan_set_ostate(c, CHAN_OUTPUT_CLOSED);