From 0186eed928e8a5e7e332b48a2ddb4d74770abb64 Mon Sep 17 00:00:00 2001 From: Justin Erenkrantz Date: Wed, 29 May 2002 17:55:42 +0000 Subject: [PATCH] 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 --- modules/filters/mod_deflate.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.50.1