Commit 72d94d7c authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add missing checks for Z_OK

Found & Patch by:	Dmitry Panov
parent ddc3902f
......@@ -428,7 +428,7 @@ vfp_gunzip_bytes(struct sess *sp, struct http_conn *htc, ssize_t bytes)
assert(i == Z_OK || i == Z_STREAM_END);
sp->obj->len += dl;
}
if (i == Z_STREAM_END)
if (i == Z_OK || i == Z_STREAM_END)
return (1);
return (-1);
}
......@@ -580,7 +580,7 @@ vfp_testgzip_bytes(struct sess *sp, struct http_conn *htc, ssize_t bytes)
assert(i == Z_OK || i == Z_STREAM_END);
}
}
if (i == Z_STREAM_END)
if (i == Z_OK || i == Z_STREAM_END)
return (1);
return (-1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment