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
}
while (c < buf + len) {
if (ctx->bytes_parsed >= BYTE_COUNT_THRESHOLD) {
- /* gonna start over parsing the directive next time through */
- ctx->directive_length = 0;
+ if (ctx->state == PARSE_DIRECTIVE) {
+ /* gonna start over parsing the directive next time through */
+ ctx->directive_length = 0;
+ }
return dptr;
}