From: André Malo Date: Sat, 15 Feb 2003 04:57:10 +0000 (+0000) Subject: fill out parms->err_directive while looking for open parents. X-Git-Tag: pre_ajp_proxy~2134 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f1c2200c5ba55fbebfe19999e97834baf41c8a97;p=apache fill out parms->err_directive while looking for open parents. Otherwise when trying to log the error (a) we segfault (if the directive was in another file) (b) we show a wrong occurrence line number (start line of the previous container) or probably segfault, too (if no previous container exists). PR: 17093 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98671 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/config.c b/server/config.c index d225505f95..2e2b06b387 100644 --- a/server/config.c +++ b/server/config.c @@ -1170,7 +1170,9 @@ AP_DECLARE(const char *) ap_build_config(cmd_parms *parms, curr_parent->filename, curr_parent->line_num, curr_parent->directive); - curr_parent = curr_parent->parent; + + parms->err_directive = curr_parent; + curr_parent = curr_parent->parent; } return errmsg;