]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
AP_INIT_NO_ARGS mishandled in macro
authorEric Covener <covener@apache.org>
Tue, 27 Jan 2015 20:21:48 +0000 (20:21 +0000)
committerEric Covener <covener@apache.org>
Tue, 27 Jan 2015 20:21:48 +0000 (20:21 +0000)
Submitted by: Joachim Zobel <jzobel heute-morgen.de>, covener
Committed by: covener

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1655146 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
include/http_config.h

diff --git a/CHANGES b/CHANGES
index 2d167f424b1ee9faa7c8620fda7d0525e85ef931..04bf2b5a7688b7f242a71a4fed2e06eea863da64 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,10 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
 
+  *) config: For directives that do not expect any arguments, enforce
+     that none are specified in the configuration file. 
+     [Joachim Zobel <jzobel heute-morgen.de>, Eric Covener]
+
   *) mod_ssl: 'SSLProtocol ALL' was being ignored in virtual host context. 
      PR 57100.  [Michael Kaufmann <apache-bugzilla michael-kaufmann.ch>,
      Yann Ylavic]
index da3b4a2dace83e9b1d6c648bb362540bea2b106c..da4490c0a4b350f293862b4b92e2a4f8a29a173b 100644 (file)
@@ -117,7 +117,7 @@ typedef union {
 
 /** mechanism for declaring a directive with no arguments */
 # define AP_INIT_NO_ARGS(directive, func, mconfig, where, help) \
-    { directive, { .no_args=func }, mconfig, where, RAW_ARGS, help }
+    { directive, { .no_args=func }, mconfig, where, NO_ARGS, help }
 /** mechanism for declaring a directive with raw argument parsing */
 # define AP_INIT_RAW_ARGS(directive, func, mconfig, where, help) \
     { directive, { .raw_args=func }, mconfig, where, RAW_ARGS, help }
@@ -168,7 +168,7 @@ typedef const char *(*cmd_func) ();
 # define AP_FLAG     func
 
 # define AP_INIT_NO_ARGS(directive, func, mconfig, where, help) \
-    { directive, func, mconfig, where, RAW_ARGS, help }
+    { directive, func, mconfig, where, NO_ARGS, help }
 # define AP_INIT_RAW_ARGS(directive, func, mconfig, where, help) \
     { directive, func, mconfig, where, RAW_ARGS, help }
 # define AP_INIT_TAKE_ARGV(directive, func, mconfig, where, help) \