diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-27 13:53:48 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-27 13:53:48 +0000 |
commit | 65965fabad7969eb1d87df659679b73437415f52 (patch) | |
tree | 523adb3e5085bb90dcd8c434b8d73db0bc45b324 /src/rspamadm/configdump.c | |
parent | 085b3707cbddc9601b3dd8f5953c74d299cac2d4 (diff) | |
download | rspamd-65965fabad7969eb1d87df659679b73437415f52.tar.gz rspamd-65965fabad7969eb1d87df659679b73437415f52.zip |
Fix initialization order
Diffstat (limited to 'src/rspamadm/configdump.c')
-rw-r--r-- | src/rspamadm/configdump.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/rspamadm/configdump.c b/src/rspamadm/configdump.c index e40f2f34a..1e169f791 100644 --- a/src/rspamadm/configdump.c +++ b/src/rspamadm/configdump.c @@ -28,6 +28,7 @@ #include "cfg_rcl.h" #include "utlist.h" #include "rspamd.h" +#include "lua/lua_common.h" static gboolean json = FALSE; static gboolean compact = FALSE; @@ -173,15 +174,15 @@ rspamadm_configdump (gint argc, gchar **argv) } else { /* Do post-load actions */ - rspamd_config_post_load (cfg, FALSE); - ret = TRUE; - } - - if (ret) { + rspamd_lua_post_load_config (cfg); if (!rspamd_init_filters (rspamd_main->cfg, FALSE)) { ret = FALSE; } + + if (ret) { + ret = rspamd_config_post_load (cfg, FALSE); + } } if (ret) { |