Commit 820462ac authored by Justin Erenkrantz's avatar Justin Erenkrantz
Browse files

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
parent f3f2923b
Loading
Loading
Loading
Loading
+2 −0
Changes for modules/filters/mod_deflate.c: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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;