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

Minor channel_forward changes.

Rev: src/tcpforward.c:1.63
Rev: src/tcpforward_commands.c:1.34
parent b4a3ad5a
...@@ -150,7 +150,7 @@ do_open_forwarded_tcpip_continuation(struct command_continuation *s, ...@@ -150,7 +150,7 @@ do_open_forwarded_tcpip_continuation(struct command_continuation *s,
struct lsh_object *x) struct lsh_object *x)
{ {
CAST(open_forwarded_tcpip_continuation, self, s); CAST(open_forwarded_tcpip_continuation, self, s);
CAST_SUBTYPE(ssh_channel, channel, x); CAST(channel_forward, channel, x);
assert(channel); assert(channel);
......
...@@ -108,7 +108,7 @@ do_tcpip_start_io(struct command *s UNUSED, ...@@ -108,7 +108,7 @@ do_tcpip_start_io(struct command *s UNUSED,
struct command_continuation *c, struct command_continuation *c,
struct exception_handler *e UNUSED) struct exception_handler *e UNUSED)
{ {
CAST_SUBTYPE(ssh_channel, channel, x); CAST(channel_forward, channel, x);
assert(channel); assert(channel);
...@@ -159,7 +159,7 @@ new_tcpip_channel(struct channel_open_command *c, ...@@ -159,7 +159,7 @@ new_tcpip_channel(struct channel_open_command *c,
debug("tcpforward_commands.c: new_tcpip_channel\n"); debug("tcpforward_commands.c: new_tcpip_channel\n");
channel = make_channel_forward(self->peer->fd, TCPIP_WINDOW_SIZE); channel = &make_channel_forward(self->peer->fd, TCPIP_WINDOW_SIZE)->super;
channel->write = connection->write; channel->write = connection->write;
*request = format_channel_open(self->type, local_channel_number, *request = format_channel_open(self->type, local_channel_number,
......
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