diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-11-04 13:17:43 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-11-04 13:17:43 +0000 |
commit | 041d2e56ebeb880a423eb7f8434cdab4f7efaf68 (patch) | |
tree | bfe5553c7b21bbe00aeec9c93ff9f52cde4f9af8 /src/libserver/cfg_rcl.c | |
parent | 3383065b190c63dfaa3ef837572b1b43f80ae841 (diff) | |
download | rspamd-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.c | 1 |
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; |