diff options
Diffstat (limited to 'src/rspamadm/confighelp.c')
-rw-r--r-- | src/rspamadm/confighelp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rspamadm/confighelp.c b/src/rspamadm/confighelp.c index 85564cf4c..ff80341ea 100644 --- a/src/rspamadm/confighelp.c +++ b/src/rspamadm/confighelp.c @@ -106,8 +106,7 @@ rspamadm_confighelp_show (struct rspamd_config *cfg, gint argc, gchar **argv, rspamd_fprintf (stdout, "Showing help for all options:\n"); } - rspamadm_execute_lua_ucl_subr (cfg->lua_state, - argc, + rspamadm_execute_lua_ucl_subr (argc, argv, obj, "confighelp", @@ -228,7 +227,7 @@ rspamadm_confighelp (gint argc, gchar **argv, const struct rspamadm_command *cmd } cfg = rspamd_config_new (RSPAMD_CONFIG_INIT_SKIP_LUA); - cfg->lua_state = L; + cfg->lua_state = rspamd_main->cfg->lua_state; cfg->compiled_modules = modules; cfg->compiled_workers = workers; |