summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2002-01-14 13:41:13 +0000
committermarkus <markus@openbsd.org>2002-01-14 13:41:13 +0000
commite65b98e90fd8389e94fa1c7d94a840e82bd119ed (patch)
tree569f68fe4c6aef15ffd0b460b30bd55bd32bfb03
parentcorrect fn names for ssh2, do not switch from closed to closed; ok provos@ (diff)
downloadwireguard-openbsd-e65b98e90fd8389e94fa1c7d94a840e82bd119ed.tar.xz
wireguard-openbsd-e65b98e90fd8389e94fa1c7d94a840e82bd119ed.zip
remove duplicated code; ok provos@
-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);