Commit 46ac638c authored by Niels Möller's avatar Niels Möller
Browse files

* src/tcpforward.c (do_tcpip_eof): Use the SHUT_WR constant, which

is defined in io.h if needed.

Rev: src/tcpforward.c:1.61
parent fd6bc24d
......@@ -146,18 +146,9 @@ do_tcpip_eof(struct ssh_channel *s)
{
CAST(tcpip_channel, self, s);
/* Tell the local peer that there's no more data.
* 1 is SHUT_WR. */
if (shutdown (self->socket->fd, 1) < 0)
if (shutdown (self->socket->fd, SHUT_WR) < 0)
werror("do_tcpip_eof, shutdown failed, (errno = %i): %z\n",
errno, STRERROR(errno));
#if 0
/* Moved to channel.c:channel_eof_handler. */
if ( (s->flags & CHANNEL_SENT_EOF)
&& (s->flags & CHANNEL_CLOSE_AT_EOF))
channel_close(s);
#endif
}
/* NOTE: Adds the socket to the channel's resource list */
......
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