comparison common-kex.c @ 1358:6b89eb92f872 fuzz

glaring wrapfd problems fixed
author Matt Johnston <matt@ucc.asn.au>
date Sat, 20 May 2017 22:47:19 +0800
parents 08f4fa4dc6a0
children 9aa6cd66b51d
comparison
equal deleted inserted replaced
1357:08f4fa4dc6a0 1358:6b89eb92f872
401 ses.newkeys->recv.zstream = (z_streamp)m_malloc(sizeof(z_stream)); 401 ses.newkeys->recv.zstream = (z_streamp)m_malloc(sizeof(z_stream));
402 ses.newkeys->recv.zstream->zalloc = Z_NULL; 402 ses.newkeys->recv.zstream->zalloc = Z_NULL;
403 ses.newkeys->recv.zstream->zfree = Z_NULL; 403 ses.newkeys->recv.zstream->zfree = Z_NULL;
404 404
405 if (inflateInit(ses.newkeys->recv.zstream) != Z_OK) { 405 if (inflateInit(ses.newkeys->recv.zstream) != Z_OK) {
406 m_free(ses.newkeys->recv.zstream);
406 dropbear_exit("zlib error"); 407 dropbear_exit("zlib error");
407 } 408 }
408 } else { 409 } else {
409 ses.newkeys->recv.zstream = NULL; 410 ses.newkeys->recv.zstream = NULL;
410 } 411 }