diff --git a/lib/content_encoding.c b/lib/content_encoding.c index 473b82b1ed6ce2c853c23088e3b56d7445226319..47f245e9f7f443eb0f4f3904f9ec5515dbbfcc3d 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; }