]> granicus.if.org Git - apache/commitdiff
Make sure that z_RC is not Z_STREAM_END in case we get a 0-length bucket
authorJustin Erenkrantz <jerenkrantz@apache.org>
Wed, 29 May 2002 17:55:42 +0000 (17:55 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Wed, 29 May 2002 17:55:42 +0000 (17:55 +0000)
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

index 3813a2782c13926536c9a95cfc447d6465c6777c..64b5836b1f4544a26772542886285a3e2b419ac3 100644 (file)
@@ -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;