From: Vsevolod Stakhov Date: Mon, 7 Dec 2015 15:06:41 +0000 (+0000) Subject: Fix cache initialization X-Git-Tag: 1.1.0~389 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d1ec922203c121e45930b82d64900ec0d8f9ef13;p=rspamd.git Fix cache initialization --- 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; }