Commit aefe1680 authored by Ruediger Pluem's avatar Ruediger Pluem
Browse files

* Also log the presence of garbage data at the end of the stream if all

  validation data is available in the first round.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@475920 13f79535-47bb-0310-9956-ffa450edef68
parent 28d22d18
Loading
Loading
Loading
Loading
+4 −0
Changes for modules/filters/mod_deflate.c: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -1196,6 +1196,10 @@ static apr_status_t inflate_out_filter(ap_filter_t *f,
                                                     VALIDATION_SIZE);
                if (ctx->stream.avail_in > VALIDATION_SIZE) {
                    ctx->validation_buffer_length = VALIDATION_SIZE;
                    ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r,
                                  "Zlib: %d bytes of garbage at the end of "
                                  "compressed stream.",
                                  ctx->stream.avail_in - VALIDATION_SIZE);
                } else if (ctx->stream.avail_in > 0) {
                           ctx->validation_buffer_length = ctx->stream.avail_in;
                }