From: Justin Erenkrantz Date: Wed, 29 May 2002 17:55:42 +0000 (+0000) Subject: Make sure that z_RC is not Z_STREAM_END in case we get a 0-length bucket X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=820462acfa376d0ab319e531f5f8ec6e27c48f3b;p=apache Make sure that z_RC is not Z_STREAM_END in case we get a 0-length bucket and we don't enter the while loop. Submitted by: Jeff Trawick's horde of picky compilers git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95359 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/mod_deflate.c b/modules/filters/mod_deflate.c index 3813a2782c..64b5836b1f 100644 --- a/modules/filters/mod_deflate.c +++ b/modules/filters/mod_deflate.c @@ -669,6 +669,8 @@ static apr_status_t deflate_in_filter(ap_filter_t *f, ctx->stream.next_in = (unsigned char *)data; ctx->stream.avail_in = len; + zRC = Z_OK; + while (ctx->stream.avail_in != 0) { if (ctx->stream.avail_out == 0) { apr_bucket *tmp_heap;