Mercurial > dropbear
comparison 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 |
comparison
equal
deleted
inserted
replaced
552:de3653483ac0 | 559:7f66b8e40f2d |
---|---|
369 || ses.newkeys->trans.algo_comp == DROPBEAR_COMP_ZLIB_DELAY) { | 369 || ses.newkeys->trans.algo_comp == DROPBEAR_COMP_ZLIB_DELAY) { |
370 ses.newkeys->trans.zstream = (z_streamp)m_malloc(sizeof(z_stream)); | 370 ses.newkeys->trans.zstream = (z_streamp)m_malloc(sizeof(z_stream)); |
371 ses.newkeys->trans.zstream->zalloc = Z_NULL; | 371 ses.newkeys->trans.zstream->zalloc = Z_NULL; |
372 ses.newkeys->trans.zstream->zfree = Z_NULL; | 372 ses.newkeys->trans.zstream->zfree = Z_NULL; |
373 | 373 |
374 if (deflateInit(ses.newkeys->trans.zstream, Z_DEFAULT_COMPRESSION) | 374 if (deflateInit2(ses.newkeys->trans.zstream, Z_DEFAULT_COMPRESSION, |
375 Z_DEFLATED, DROPBEAR_ZLIB_WINDOW_BITS, | |
376 DROPBEAR_ZLIB_MEM_LEVEL, Z_DEFAULT_STRATEGY) | |
375 != Z_OK) { | 377 != Z_OK) { |
376 dropbear_exit("zlib error"); | 378 dropbear_exit("zlib error"); |
377 } | 379 } |
378 } else { | 380 } else { |
379 ses.newkeys->trans.zstream = NULL; | 381 ses.newkeys->trans.zstream = NULL; |