From: Christophe Jaillet Date: Sat, 3 Dec 2016 21:37:52 +0000 (+0000) Subject: The default value of 'inherit' should be AP_LUA_INHERIT_UNSET. X-Git-Tag: 2.5.0-alpha~956 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd677cee0c027fbd87f13c3782cd300792704683;p=thirdparty%2Fapache%2Fhttpd.git 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 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1772489 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/lua/mod_lua.c b/modules/lua/mod_lua.c index 0f0c2596e2b..1076fb16b9d 100644 --- a/modules/lua/mod_lua.c +++ b/modules/lua/mod_lua.c @@ -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; }