diff options
author | Mikhail Galanin <mgalanin@mimecast.com> | 2018-09-06 09:19:57 +0100 |
---|---|---|
committer | Mikhail Galanin <mgalanin@mimecast.com> | 2018-09-06 09:19:57 +0100 |
commit | 4c4c9f45c48992c5969923fa3bd7383f794fdc8a (patch) | |
tree | fe70699bf21760a53d226a05f20c37a5c8d665e2 /src/rspamadm/confighelp.c | |
parent | 49fb6ed4d68e7691b5219c78fd0837ca4e2f7b94 (diff) | |
download | rspamd-4c4c9f45c48992c5969923fa3bd7383f794fdc8a.tar.gz rspamd-4c4c9f45c48992c5969923fa3bd7383f794fdc8a.zip |
[Minor] Reworked other parts of rspamadm to handle asynchronous events
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; |