X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/e117a7427fbe82256705a281e29ec0fcfafeb613..7b4fa1b4c762a5fc20f905221c17b1698338c62a:/sshzlib.c diff --git a/sshzlib.c b/sshzlib.c index dc23f5cc..91b29a0e 100644 --- a/sshzlib.c +++ b/sshzlib.c @@ -1164,7 +1164,10 @@ int zlib_decompress_block(unsigned char *block, int len, goto finished; nlen = dctx.bits & 0xFFFF; EATBITS(16); - dctx.state = UNCOMP_DATA; + if (dctx.uncomplen == 0) + dctx.state = OUTSIDEBLK; /* block is empty */ + else + dctx.state = UNCOMP_DATA; break; case UNCOMP_DATA: if (dctx.nbits < 8)