From: Jeff Trawick Date: Fri, 16 Jun 2000 12:00:58 +0000 (+0000) Subject: Fix segfault when reporting this type of syntax error: X-Git-Tag: APACHE_2_0_ALPHA_5~326 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78571030f9298cb97f4e508a606c9cc43af64b10;p=apache Fix segfault when reporting this type of syntax error: " without matching 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 --- diff --git a/server/config.c b/server/config.c index b4abd98b64..2e84062691 100644 --- a/server/config.c +++ b/server/config.c @@ -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);