]> granicus.if.org Git - apache/commitdiff
whoops! replace two post 2.0.24 fixes I accidently wiped out yesterday.
authorGreg Ames <gregames@apache.org>
Thu, 23 Aug 2001 15:35:50 +0000 (15:35 +0000)
committerGreg Ames <gregames@apache.org>
Thu, 23 Aug 2001 15:35:50 +0000 (15:35 +0000)
Reported by: Jeff Trawick, Paul Reder

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

modules/filters/mod_include.c

index 6940667eac319171ec84cbf62ba9310bc2093c28..220a747bffab7e78651a37e8ccfac14c9982fbdc 100644 (file)
@@ -275,6 +275,7 @@ static apr_bucket *find_end_sequence(apr_bucket *dptr, include_ctx_t *ctx, apr_b
                 if (ctx->state == PARSE_DIRECTIVE) {
                     /* gonna start over parsing the directive next time through */
                     ctx->directive_length = 0;
+                    ctx->tag_length       = 0;
                 }
                 return dptr;
             }
@@ -832,8 +833,9 @@ static int handle_include(include_ctx_t *ctx, apr_bucket_brigade **bb, request_r
                     for (p = r; p != NULL && !founddupe; p = p->main) {
                    request_rec *q;
                    for (q = p; q != NULL; q = q->prev) {
-                       if ( (strcmp(q->filename, rr->filename) == 0) ||
-                            (strcmp(q->uri, rr->uri) == 0) ){
+                        if ((q->filename && rr->filename && 
+                                    (strcmp(q->filename, rr->filename) == 0)) ||
+                                (strcmp(q->uri, rr->uri) == 0)) {
                            founddupe = 1;
                            break;
                        }