aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_rcl.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-11-04 13:17:43 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-11-04 13:17:43 +0000
commit041d2e56ebeb880a423eb7f8434cdab4f7efaf68 (patch)
treebfe5553c7b21bbe00aeec9c93ff9f52cde4f9af8 /src/libserver/cfg_rcl.c
parent3383065b190c63dfaa3ef837572b1b43f80ae841 (diff)
downloadrspamd-041d2e56ebeb880a423eb7f8434cdab4f7efaf68.tar.gz
rspamd-041d2e56ebeb880a423eb7f8434cdab4f7efaf68.zip
[Rework] Simplify lua path initialization
Diffstat (limited to 'src/libserver/cfg_rcl.c')
-rw-r--r--src/libserver/cfg_rcl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c
index d32fa1919..f53b5ca17 100644
--- a/src/libserver/cfg_rcl.c
+++ b/src/libserver/cfg_rcl.c
@@ -3624,6 +3624,7 @@ rspamd_config_read (struct rspamd_config *cfg, const gchar *filename,
MIN (sizeof (cfg->cfg_pool->tag.uid), strlen (cfg->checksum)));
top = rspamd_rcl_config_init (cfg);
+ rspamd_lua_set_path (cfg->lua_state, cfg->rcl_obj, vars);
rspamd_rcl_set_lua_globals (cfg, cfg->lua_state, vars);
rspamd_mempool_add_destructor (cfg->cfg_pool, rspamd_rcl_section_free, top);
err = NULL;