From: Vsevolod Stakhov Date: Mon, 16 Feb 2015 16:50:05 +0000 (+0000) Subject: Do not set lua path when cfg is not loaded. X-Git-Tag: 0.8.2~23^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd29ea64acc864f13cc94e6aab9be1a1af0db4b9;p=thirdparty%2Frspamd.git Do not set lua path when cfg is not loaded. --- diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c index 0f7c79ce7d..1c8e97afb0 100644 --- a/src/lua/lua_common.c +++ b/src/lua/lua_common.c @@ -351,8 +351,6 @@ rspamd_lua_init (struct rspamd_config *cfg) rspamd_lua_add_preload (L, "ucl", luaopen_ucl); - rspamd_lua_set_path (L, cfg); - return L; } @@ -396,6 +394,7 @@ rspamd_init_lua_filters (struct rspamd_config *cfg) struct rspamd_statfile_config *st; lua_State *L = cfg->lua_state; + rspamd_lua_set_path (L, cfg); cur = g_list_first (cfg->script_modules); while (cur) {