Fix for a bug report that compressed files that are exactly 64 KiB long
authorDan Fandrich <dan@coneharvesters.com>
Mon, 7 Feb 2005 19:12:37 +0000 (19:12 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Mon, 7 Feb 2005 19:12:37 +0000 (19:12 +0000)
produce a zlib error.

lib/content_encoding.c

index 473b82b..47f245e 100644 (file)
@@ -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;
       }