Commit 9bf1afcb authored by Niels Möller's avatar Niels Möller
Browse files

(do_channel_forward_eof): Don't call

shutdown(), use close_fd_write instead.

Rev: src/channel_forward.c:1.4
parent 929ce317
...@@ -105,9 +105,9 @@ do_channel_forward_eof(struct ssh_channel *s) ...@@ -105,9 +105,9 @@ do_channel_forward_eof(struct ssh_channel *s)
{ {
CAST(channel_forward, self, s); CAST(channel_forward, self, s);
if (shutdown (self->socket->fd, SHUT_WR) < 0) /* We won't write any more. io.c should make sure that shutdown is called
werror("do_channel_forward_eof, shutdown failed, (errno = %i): %z\n", * once the write_buffer is empty. */
errno, STRERROR(errno)); close_fd_write(self->socket);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment