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
154a65fc
Commit
154a65fc
authored
Apr 16, 2013
by
Matt Johnston
Browse files
Fix build when zlib is disabled, from
http://freetz.org/browser/trunk/make/dropbear/patches/350-no_zlib_fix.patch
parent
bd7a46f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
common-kex.c
View file @
154a65fc
...
...
@@ -171,14 +171,18 @@ static void switch_keys() {
}
if
(
ses
.
kexstate
.
recvnewkeys
&&
ses
.
newkeys
->
recv
.
valid
)
{
TRACE
((
"switch_keys recv"
))
#ifndef DISABLE_ZLIB
gen_new_zstream_recv
();
#endif
ses
.
keys
->
recv
=
ses
.
newkeys
->
recv
;
m_burn
(
&
ses
.
newkeys
->
recv
,
sizeof
(
ses
.
newkeys
->
recv
));
ses
.
newkeys
->
recv
.
valid
=
0
;
}
if
(
ses
.
kexstate
.
sentnewkeys
&&
ses
.
newkeys
->
trans
.
valid
)
{
TRACE
((
"switch_keys trans"
))
#ifndef DISABLE_ZLIB
gen_new_zstream_trans
();
#endif
ses
.
keys
->
trans
=
ses
.
newkeys
->
trans
;
m_burn
(
&
ses
.
newkeys
->
trans
,
sizeof
(
ses
.
newkeys
->
trans
));
ses
.
newkeys
->
trans
.
valid
=
0
;
...
...
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