X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/dc3c8261f1530c7926d4fded06a7ee58ec010b73..d64838e1ae525557b92aed3e69dbee4e42ba2d22:/sshzlib.c?ds=inline 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)