aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamadm/configdump.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-11-25 12:24:13 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-11-25 12:24:13 +0000
commit65967cdddf5ff8d858ff070bdc7885482408d2b7 (patch)
treecc0428d41fcf52e97bcd4d6db4c889de9161fb5d /src/rspamadm/configdump.c
parent15e9311ce1bfafdcfc520f7543053cddca4541f9 (diff)
downloadrspamd-65967cdddf5ff8d858ff070bdc7885482408d2b7.tar.gz
rspamd-65967cdddf5ff8d858ff070bdc7885482408d2b7.zip
[Minor] Fix config transformation with no groups
Diffstat (limited to 'src/rspamadm/configdump.c')
-rw-r--r--src/rspamadm/configdump.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/rspamadm/configdump.c b/src/rspamadm/configdump.c
index 6f320dea1..60cd75c36 100644
--- a/src/rspamadm/configdump.c
+++ b/src/rspamadm/configdump.c
@@ -284,7 +284,6 @@ rspamadm_configdump (gint argc, gchar **argv)
}
else {
/* Do post-load actions */
- rspamd_lua_set_path (cfg->lua_state, cfg->rcl_obj, ucl_vars);
rspamd_lua_post_load_config (cfg);
if (!rspamd_init_filters (rspamd_main->cfg, FALSE)) {
@@ -328,9 +327,5 @@ rspamadm_configdump (gint argc, gchar **argv)
}
}
- if (!ret) {
- exit (EXIT_FAILURE);
- }
-
- exit (EXIT_SUCCESS);
+ exit (ret ? EXIT_SUCCESS : EXIT_FAILURE);
}