From 78571030f9298cb97f4e508a606c9cc43af64b10 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Fri, 16 Jun 2000 12:00:58 +0000 Subject: [PATCH] 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 --- server/config.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.40.0