diff --git a/lib/content_encoding.c b/lib/content_encoding.c index f8c9234d90..6fb7c8d3a8 100644 --- a/lib/content_encoding.c +++ b/lib/content_encoding.c @@ -123,7 +123,9 @@ inflate_stream(struct connectdata *conn, } /* Done with these bytes, exit */ - if(status == Z_OK && z->avail_in == 0) { + + /* status is always Z_OK at this point! */ + if(z->avail_in == 0) { free(decomp); return result; }