From: Dan Fandrich Date: Mon, 7 Feb 2005 19:12:37 +0000 (+0000) Subject: Fix for a bug report that compressed files that are exactly 64 KiB long X-Git-Tag: upstream/7.37.1~11575 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e4a1788614aed581f03b54cd421ab949aac3b37d;p=platform%2Fupstream%2Fcurl.git Fix for a bug report that compressed files that are exactly 64 KiB long produce a zlib error. --- diff --git a/lib/content_encoding.c b/lib/content_encoding.c index 473b82b..47f245e 100644 --- a/lib/content_encoding.c +++ b/lib/content_encoding.c @@ -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; }