Mercurial > dropbear
diff common-kex.c @ 559:7f66b8e40f2d agent-client
propagate from branch 'au.asn.ucc.matt.dropbear' (head bbe4e11695a7b22bd89a722600eb4a4020b6fdf3)
to branch 'au.asn.ucc.matt.dropbear.cli-agent' (head 276cf5e82276b6c879d246ba64739ec6868f5150)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 29 Jul 2009 02:58:33 +0000 |
parents | daf52f813328 |
children | f9b5dc0cba61 |
line wrap: on
line diff
--- a/common-kex.c Mon Jul 06 14:02:45 2009 +0000 +++ b/common-kex.c Wed Jul 29 02:58:33 2009 +0000 @@ -371,7 +371,9 @@ ses.newkeys->trans.zstream->zalloc = Z_NULL; ses.newkeys->trans.zstream->zfree = Z_NULL; - if (deflateInit(ses.newkeys->trans.zstream, Z_DEFAULT_COMPRESSION) + if (deflateInit2(ses.newkeys->trans.zstream, Z_DEFAULT_COMPRESSION, + Z_DEFLATED, DROPBEAR_ZLIB_WINDOW_BITS, + DROPBEAR_ZLIB_MEM_LEVEL, Z_DEFAULT_STRATEGY) != Z_OK) { dropbear_exit("zlib error"); }