]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r1772489, r1772504 from trunk:
authorJim Jagielski <jim@apache.org>
Tue, 6 Dec 2016 17:35:52 +0000 (17:35 +0000)
committerJim Jagielski <jim@apache.org>
Tue, 6 Dec 2016 17:35:52 +0000 (17:35 +0000)
The default value of 'inherit' should be AP_LUA_INHERIT_UNSET.
With this value, the behavior is the same as 'parent-first' in the 'LuaInherit' directive

If not explicitelly initialized, its value is 0 because of the 'apr_calloc 'in 'create_dir_config'. 0 means 'AP_LUA_INHERIT_NONE'

PR 60419

Missing CHNAGES for r1772489
Submitted by: jailletc36
Reviewed/backported by: jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1772922 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/lua/mod_lua.c

diff --git a/CHANGES b/CHANGES
index 23ba1c975808cc27c0569525dc77e8f54b838d4c..1b290fd251e25dc9c9597f74a6444ea034c7af2c 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,7 +2,6 @@
 
 Changes with Apache 2.4.24
 
-
   *) SECURITY: CVE-2016-8740 (cve.mitre.org)
      mod_http2: Mitigate DoS memory exhaustion via endless
      CONTINUATION frames.
@@ -13,6 +12,10 @@ Changes with Apache 2.4.24
      core: Mitigate [f]cgi "httpoxy" issues.
      [Dominic Scheirlinck <dominic vendhq.com>, Yann Ylavic]
 
+  *) mod_lua: Fix default value of LuaInherit directive. It should be 
+     'parent-first' instead of 'none', as per documentation.  PR 60419
+     [Christophe Jaillet]
+
   *) Enforce http request grammer corresponding to RFC7230 for request lines
      and request headers [William Rowe, Stefan Fritsch]
 
index 459e252e4e1a2531ab0a7bf686c6f5d2fc86f36b..3add43648d496563b5d9f79f0db4daddb1773964 100644 (file)
@@ -1956,6 +1956,7 @@ static void *create_dir_config(apr_pool_t *p, char *dir)
     cfg->codecache = AP_LUA_CACHE_UNSET;
     cfg->vm_min = 0;
     cfg->vm_max = 0;
+    cfg->inherit = AP_LUA_INHERIT_UNSET;
 
     return cfg;
 }