Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matt Johnston
dropbear
Commits
a18a6b8d
Commit
a18a6b8d
authored
Feb 12, 2014
by
Matt Johnston
Browse files
cleanup before clearing keys
parent
bf56591f
Changes
1
Hide whitespace changes
Inline
Side-by-side
common-session.c
View file @
a18a6b8d
...
...
@@ -244,7 +244,11 @@ void session_cleanup() {
if
(
ses
.
extra_session_cleanup
)
{
ses
.
extra_session_cleanup
();
}
chancleanup
();
/* Cleaning up keys must happen after other cleanup
functions which might queue packets */
if
(
ses
.
session_id
)
{
buf_burn
(
ses
.
session_id
);
buf_free
(
ses
.
session_id
);
...
...
@@ -258,8 +262,6 @@ void session_cleanup() {
m_burn
(
ses
.
keys
,
sizeof
(
struct
key_context
));
m_free
(
ses
.
keys
);
chancleanup
();
TRACE
((
"leave session_cleanup"
))
}
...
...
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