mirror of https://github.com/moparisthebest/curl
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 */
|
/* 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);
|
free(decomp);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue