From: Jeff Trawick Date: Tue, 6 Mar 2001 21:46:12 +0000 (+0000) Subject: Report unbounded containers in the config file. Previously, a typo X-Git-Tag: 2.0.14~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0495cdf8565ff8b22fa570e2929b42a12347a4c5;p=thirdparty%2Fapache%2Fhttpd.git Report unbounded containers in the config file. Previously, a typo in the directive could result in the rest of the config file being silently ignored, with undesired defaults used. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88461 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index bcebe838d73..1026446531c 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,10 @@ Changes with Apache 2.0.14-dev + *) Report unbounded containers in the config file. Previously, a typo + in the directive could result in the rest of the config + file being silently ignored, with undesired defaults used. + [Jeff Trawick] + *) Make the old_write filter use the ap_f* functions for the buffering. [Ryan Bloom] diff --git a/server/config.c b/server/config.c index d6c0284742b..38abcc8cc86 100644 --- a/server/config.c +++ b/server/config.c @@ -1137,14 +1137,20 @@ AP_DECLARE(const char *) ap_soak_end_container(cmd_parms *cmd, char *directive) directive + 1, "> but saw ", cmd_name, ">", NULL); } - break; + return NULL; /* found end of container */ } else { - ap_soak_end_container(cmd, cmd_name); + const char *msg; + + if ((msg = ap_soak_end_container(cmd, cmd_name)) != NULL) { + return msg; + } } } } - return NULL; + return apr_pstrcat(cmd->pool, "Expected before end of configuration", + NULL); } static const char *execute_now(char *cmd_line, const char *args, cmd_parms *parms,