aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamd.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-27 13:53:48 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-27 13:53:48 +0000
commit65965fabad7969eb1d87df659679b73437415f52 (patch)
tree523adb3e5085bb90dcd8c434b8d73db0bc45b324 /src/rspamd.c
parent085b3707cbddc9601b3dd8f5953c74d299cac2d4 (diff)
downloadrspamd-65965fabad7969eb1d87df659679b73437415f52.tar.gz
rspamd-65965fabad7969eb1d87df659679b73437415f52.zip
Fix initialization order
Diffstat (limited to 'src/rspamd.c')
-rw-r--r--src/rspamd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rspamd.c b/src/rspamd.c
index c9d5904d8..f198a6eeb 100644
--- a/src/rspamd.c
+++ b/src/rspamd.c
@@ -598,6 +598,12 @@ load_rspamd_config (struct rspamd_main *rspamd_main,
}
}
+ /*
+ * As some rules are defined in lua, we need to process them, then init
+ * modules and merely afterwards to init modules
+ */
+ rspamd_lua_post_load_config (cfg);
+
if (init_modules) {
rspamd_init_filters (cfg, FALSE);
}