]> granicus.if.org Git - apache/commitdiff
Fix segfault when reporting this type of syntax error:
authorJeff Trawick <trawick@apache.org>
Fri, 16 Jun 2000 12:00:58 +0000 (12:00 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 16 Jun 2000 12:00:58 +0000 (12:00 +0000)
"</container> without matching <container> section", where
container is VirtualHost or Directory or whatever.

This was a path not covered by the fix in 2.0a4 to report
the proper line numbers (sorry!).

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

server/config.c

index b4abd98b64202df82150e630e59a5a847df6c1be..2e84062691f334aa0a6cd7344e03fa15a76bca44 100644 (file)
@@ -915,6 +915,7 @@ static const char * ap_build_config_sub(ap_pool_t *p, ap_pool_t *temp_pool,
             (*current) = ap_add_node(curr_parent, *current, newdir, 1);
         }
        else if (*curr_parent == NULL) {
+            parms->err_directive = newdir;
            return ap_pstrcat(p, cmd_name,
                              " without matching <", cmd_name + 2,
                              " section", NULL);