Commit f59ba9dc authored by Jeff Trawick's avatar Jeff Trawick
Browse files

we're only going to re-scan the directive when we're in

PARSE_DIRECTIVE state, so only reset directive_length when
in that state


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90302 13f79535-47bb-0310-9956-ffa450edef68
parent bc6500e1
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -270,8 +270,10 @@ static apr_bucket *find_end_sequence(apr_bucket *dptr, include_ctx_t *ctx, apr_b
        }
        while (c < buf + len) {
            if (ctx->bytes_parsed >= BYTE_COUNT_THRESHOLD) {
                if (ctx->state == PARSE_DIRECTIVE) {
                    /* gonna start over parsing the directive next time through */
                    ctx->directive_length = 0;
                }
                return dptr;
            }