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

(open_direct_tcpip_command): Don't setup any channel_open_context.

Rev: src/client_tcpforward.c:
parent 52721f03
......@@ -51,7 +51,7 @@ DEFINE_COMMAND3(open_direct_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, target, a1);
......@@ -65,7 +65,8 @@ DEFINE_COMMAND3(open_direct_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_DIRECT_TCPIP,
if (!channel_open_new_type(connection, &channel->super,
target->ip, target->port,
lv->peer->ip, lv->peer->port))
......@@ -75,11 +76,6 @@ DEFINE_COMMAND3(open_direct_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