diff 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
line wrap: on
line diff
--- a/common-kex.c	Sat May 20 13:23:16 2017 +0800
+++ b/common-kex.c	Sat May 20 22:47:19 2017 +0800
@@ -403,6 +403,7 @@
 		ses.newkeys->recv.zstream->zfree = Z_NULL;
 		
 		if (inflateInit(ses.newkeys->recv.zstream) != Z_OK) {
+			m_free(ses.newkeys->recv.zstream);
 			dropbear_exit("zlib error");
 		}
 	} else {