aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamadm/rspamadm.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-03-26 16:38:27 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-03-26 16:38:27 +0000
commitfbe966f7b9d6f1655cbce792fb60d2d1b4633616 (patch)
tree540effaaeeeefa24a5bee904de3f3a9891e4bb53 /src/rspamadm/rspamadm.c
parenta5af7ff8d409b63743889c5562c7b735e19313a8 (diff)
downloadrspamd-fbe966f7b9d6f1655cbce792fb60d2d1b4633616.tar.gz
rspamd-fbe966f7b9d6f1655cbce792fb60d2d1b4633616.zip
[Rework] Change lua global variables registration
Diffstat (limited to 'src/rspamadm/rspamadm.c')
-rw-r--r--src/rspamadm/rspamadm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rspamadm/rspamadm.c b/src/rspamadm/rspamadm.c
index 0c6ffd419..227cbc86b 100644
--- a/src/rspamadm/rspamadm.c
+++ b/src/rspamadm/rspamadm.c
@@ -458,8 +458,9 @@ main (gint argc, gchar **argv, gchar **env)
setproctitle ("rspamdadm");
L = cfg->lua_state;
+ rspamd_lua_set_env (L, ucl_vars);
rspamd_lua_set_path (L, NULL, ucl_vars);
- rspamd_lua_set_globals (cfg, L, ucl_vars);
+ rspamd_lua_set_globals (cfg, L);
rspamadm_add_lua_globals ();
#ifdef WITH_HIREDIS