aboutsummaryrefslogtreecommitdiff
path: root/lib/content_encoding.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2005-02-07 19:12:37 +0000
committerDan Fandrich <dan@coneharvesters.com>2005-02-07 19:12:37 +0000
commite4a1788614aed581f03b54cd421ab949aac3b37d (patch)
tree5e3b1ef157c331b2243ba3cf94904e835530bc22 /lib/content_encoding.c
parent7b23eff9cf32d498b8b04b5a983f1b26e2eb5795 (diff)
Fix for a bug report that compressed files that are exactly 64 KiB long
produce a zlib error.
Diffstat (limited to 'lib/content_encoding.c')
-rw-r--r--lib/content_encoding.c2
1 files changed, 1 insertions, 1 deletions
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;
}