diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-12-26 23:27:49 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-12-26 23:27:49 +0000 |
commit | 611eae1b23025f80bf5ad36ab62254348feee972 (patch) | |
tree | f2184be5bf3db0ecb7424804aa2b5621f4cda689 /src/rspamd.c | |
parent | 2ccd109189b31349ac128ad82e5563b585fb0f06 (diff) | |
download | rspamd-611eae1b23025f80bf5ad36ab62254348feee972.tar.gz rspamd-611eae1b23025f80bf5ad36ab62254348feee972.zip |
[Rework] Distinguish between strict config test mode
Diffstat (limited to 'src/rspamd.c')
-rw-r--r-- | src/rspamd.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/rspamd.c b/src/rspamd.c index 5a1898c29..17b2956ab 100644 --- a/src/rspamd.c +++ b/src/rspamd.c @@ -968,11 +968,15 @@ load_rspamd_config (struct rspamd_main *rspamd_main, rspamd_lua_post_load_config (cfg); if (init_modules) { - rspamd_init_filters (cfg, reload, false); + if (!rspamd_init_filters (cfg, reload, false)) { + return FALSE; + } } /* Do post-load actions */ - rspamd_config_post_load (cfg, opts); + if (!rspamd_config_post_load (cfg, opts)) { + return FALSE; + } } return TRUE; |