]> granicus.if.org Git - apache/commitdiff
fill out parms->err_directive while looking for open parents.
authorAndre Malo <nd@apache.org>
Sat, 15 Feb 2003 04:57:10 +0000 (04:57 +0000)
committerAndre Malo <nd@apache.org>
Sat, 15 Feb 2003 04:57:10 +0000 (04:57 +0000)
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

server/config.c

index d225505f9588164b219c967390aa552ff5a3e29b..2e2b06b38749803fdcbecad9766305a28f2b0e44 100644 (file)
@@ -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;