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.9.0~689 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8518faa83e19f31ab9a08eeaabb770c185422a7e;p=rspamd.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 78a80f1ea..cb5f07712 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; } @@ -395,6 +393,7 @@ rspamd_init_lua_filters (struct rspamd_config *cfg) struct script_module *module; lua_State *L = cfg->lua_state; + rspamd_lua_set_path (L, cfg); cur = g_list_first (cfg->script_modules); while (cur) {