Fix for a bug report that compressed files that are exactly 64 KiB long
produce a zlib error.
This commit is contained in:
parent
7b23eff9cf
commit
e4a1788614
@ -128,7 +128,7 @@ inflate_stream(struct SessionHandle *data,
|
||||
}
|
||||
|
||||
/* Done with these bytes, exit */
|
||||
if (status == Z_OK && z->avail_in == 0 && z->avail_out > 0) {
|
||||
if (status == Z_OK && z->avail_in == 0) {
|
||||
free(decomp);
|
||||
return result;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user