projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
A sensible minimum of do_text() and do_cursor() is now implemented.
[u/mdw/putty]
/
sshzlib.c
diff --git
a/sshzlib.c
b/sshzlib.c
index
dc23f5c
..
91b29a0
100644
(file)
--- 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)