summaryrefslogtreecommitdiff
path: root/common-kex.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2017-05-20 22:47:19 +0800
committerMatt Johnston <matt@ucc.asn.au>2017-05-20 22:47:19 +0800
commit8c8e8bc29af3600719cbcf3d194f245f8fdb5256 (patch)
tree9475f9df84c924c6ef1e9806bf669fe211c94f00 /common-kex.c
parent5fef5159de5ffa389b5535bd1e59eb3d03ca6c4a (diff)
downloaddropbear-8c8e8bc29af3600719cbcf3d194f245f8fdb5256.tar.gz
glaring wrapfd problems fixed
Diffstat (limited to 'common-kex.c')
-rw-r--r--common-kex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common-kex.c b/common-kex.c
index 5259fce..a95182c 100644
--- a/common-kex.c
+++ b/common-kex.c
@@ -403,6 +403,7 @@ static void gen_new_zstream_recv() {
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 {