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

(open_forwarded_tcpip_command): Don't setup any channel_open_context.

Rev: src/server_tcpforward.c:
parent a6560459
......@@ -98,7 +98,7 @@ DEFINE_COMMAND3(open_forwarded_tcpip_command)
(struct lsh_object *a1,
struct lsh_object *a2,
struct lsh_object *a3,
struct command_continuation *c,
struct command_continuation *c UNUSED,
struct exception_handler *e)
CAST(address_info, port, a1);
......@@ -110,7 +110,8 @@ DEFINE_COMMAND3(open_forwarded_tcpip_command)
io_register_fd(lv->fd, "forwarded socket");
channel = make_channel_forward(lv->fd, TCPIP_WINDOW_SIZE);
if (!channel_open_new_type(connection, &channel->super, ATOM_FORWARDED_TCPIP,
if (!channel_open_new_type(connection, &channel->super,
port->ip, port->port,
lv->peer->ip, lv->peer->port))
......@@ -120,11 +121,6 @@ DEFINE_COMMAND3(open_forwarded_tcpip_command)
"Allocating a local channel number failed."));
channel->super.channel_open_context = make_command_context(c, e);
/* GABA:
Supports Markdown
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