aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/content_encoding.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/content_encoding.c b/lib/content_encoding.c
index f8c9234d9..6fb7c8d3a 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;
}