aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-07 15:06:41 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-07 15:06:41 +0000
commitd1ec922203c121e45930b82d64900ec0d8f9ef13 (patch)
tree4f86b2b0df762763ce787ebb24c54f09f128448f /src/libserver/cfg_utils.c
parentbe2034ea2469d327451803a5d35804e96f1076be (diff)
downloadrspamd-d1ec922203c121e45930b82d64900ec0d8f9ef13.tar.gz
rspamd-d1ec922203c121e45930b82d64900ec0d8f9ef13.zip
Fix cache initialization
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r--src/libserver/cfg_utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index 9afbabf60..012cec1c3 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -670,14 +670,14 @@ rspamd_config_post_load (struct rspamd_config *cfg, gboolean validate_cache)
/* Init config cache */
rspamd_symbols_cache_init (cfg->cache);
+ /* Init re cache */
+ rspamd_re_cache_init (cfg->re_cache);
+
/* Validate cache */
if (validate_cache) {
return rspamd_symbols_cache_validate (cfg->cache, cfg, FALSE);
}
- /* Init re cache */
- rspamd_re_cache_init (cfg->re_cache);
-
return TRUE;
}