From e4a1788614aed581f03b54cd421ab949aac3b37d Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Mon, 7 Feb 2005 19:12:37 +0000 Subject: [PATCH] Fix for a bug report that compressed files that are exactly 64 KiB long produce a zlib error. --- lib/content_encoding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/content_encoding.c b/lib/content_encoding.c index 473b82b1e..47f245e9f 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; }