]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
The default value of 'inherit' should be AP_LUA_INHERIT_UNSET.
authorChristophe Jaillet <jailletc36@apache.org>
Sat, 3 Dec 2016 21:37:52 +0000 (21:37 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sat, 3 Dec 2016 21:37:52 +0000 (21:37 +0000)
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

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

modules/lua/mod_lua.c

index 0f0c2596e2b41f4148e338b165b142eced0c177f..1076fb16b9d0b18b10e7e157c316cc9212d20e79 100644 (file)
@@ -1958,6 +1958,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;
 }