Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
959f8b37
Commit
959f8b37
authored
Feb 23, 2006
by
Niels Möller
Browse files
(open_direct_tcpip_command): Don't setup any channel_open_context.
Rev: src/client_tcpforward.c:1.1.2.5
parent
52721f03
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/client_tcpforward.c
View file @
959f8b37
...
...
@@ -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
,
ATOM_LD
(
ATOM_DIRECT_TCPIP
),
"%S%i%S%i"
,
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."
));
KILL_RESOURCE
(
&
channel
->
super
.
super
);
}
else
{
assert
(
!
channel
->
super
.
channel_open_context
);
channel
->
super
.
channel_open_context
=
make_command_context
(
c
,
e
);
}
}
/* GABA:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment