Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matt Johnston
dropbear
Commits
c0d7c669
Commit
c0d7c669
authored
Apr 10, 2013
by
Matt Johnston
Browse files
run closehandlers on cleanup
parent
3ec46704
Changes
1
Hide whitespace changes
Inline
Side-by-side
common-channel.c
View file @
c0d7c669
...
...
@@ -561,7 +561,11 @@ static void remove_channel(struct Channel * channel) {
TRACE
((
"CLOSE errfd %d"
,
channel
->
errfd
))
close
(
channel
->
errfd
);
channel
->
typedata
=
NULL
;
if
(
!
channel
->
close_handler_done
&&
channel
->
type
->
closehandler
)
{
channel
->
type
->
closehandler
(
channel
);
channel
->
close_handler_done
=
1
;
}
ses
.
channels
[
channel
->
index
]
=
NULL
;
m_free
(
channel
);
...
...
@@ -625,7 +629,7 @@ static void send_msg_channel_data(struct Channel *channel, int isextended) {
* exttype if is extended */
maxlen
=
MIN
(
maxlen
,
ses
.
writepayload
->
size
-
1
-
4
-
4
-
(
isextended
?
4
:
0
));
TRACE
((
"maxlen %d"
,
maxlen
))
TRACE
((
"maxlen %
z
d"
,
maxlen
))
if
(
maxlen
==
0
)
{
TRACE
((
"leave send_msg_channel_data: no window"
))
return
;
...
...
Write
Preview
Markdown
is supported
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