]> granicus.if.org Git - apache/commitdiff
Remove an invalid comment. (The only way that the bucket will
authorBrian Pane <brianp@apache.org>
Fri, 5 Apr 2002 06:03:30 +0000 (06:03 +0000)
committerBrian Pane <brianp@apache.org>
Fri, 5 Apr 2002 06:03:30 +0000 (06:03 +0000)
contain only a single byte is if slen==1, meaning that we've
replaced <!--# with a single-character token, and that character
is the first character in the bucket.  If that happens, then
pos+slen (aka 1) is the right amount by which to increase
bytes_parsed.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94450 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_include.c

index e880855a971e2f5f2a59f9dfd6178a03fe7adfcf..6e87798e66514139b541faf5f0c55137c7758f2a 100644 (file)
@@ -476,9 +476,7 @@ static apr_bucket *find_start_sequence(apr_bucket *dptr, include_ctx_t *ctx,
             {
                 ctx->head_start_bucket = dptr;
                 ctx->head_start_index = pos;
-                ctx->bytes_parsed += pos + slen;       /* pjr - isn't this incrementing by too much?
-                                                        *    What if only 1 byte in this bucket?
-                                                        */
+                ctx->bytes_parsed += pos + slen;
                 return found_start_sequence(dptr, ctx, pos + slen, len);
             }
         }