diff options
author | Matt Johnston <matt@ucc.asn.au> | 2013-04-16 22:16:32 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2013-04-16 22:16:32 +0800 |
commit | 154a65fc31922d612a44c0a839c2a7c27f722390 (patch) | |
tree | 9d1b0578827a4633ee8505c8a7e3dbd096308af3 /common-kex.c | |
parent | bd7a46f514c708ddf0a575e1f2bb5cbf0336b09e (diff) |
Fix build when zlib is disabled, from
http://freetz.org/browser/trunk/make/dropbear/patches/350-no_zlib_fix.patch
Diffstat (limited to 'common-kex.c')
-rw-r--r-- | common-kex.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common-kex.c b/common-kex.c index ba06e4f..a488877 100644 --- a/common-kex.c +++ b/common-kex.c @@ -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; |