changeset 781:f110d321fe7a

Fix build when zlib is disabled, from http://freetz.org/browser/trunk/make/dropbear/patches/350-no_zlib_fix.patch
author Matt Johnston <matt@ucc.asn.au>
date Tue, 16 Apr 2013 22:16:32 +0800
parents 029e769c33c6
children e0084f136cb8
files common-kex.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/common-kex.c	Mon Apr 15 22:11:11 2013 +0800
+++ b/common-kex.c	Tue Apr 16 22:16:32 2013 +0800
@@ -171,14 +171,18 @@
 	}
 	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;