]> source.dussan.org Git - rspamd.git/commitdiff
Fix cache definitions in multiple classifier and no type
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 22 Jan 2016 16:14:04 +0000 (16:14 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 22 Jan 2016 16:14:04 +0000 (16:14 +0000)
Issue: #493
Reported by: @wackerm

src/libstat/stat_config.c

index ec73951e8b842e3db6f76eb16b0daa42f57f2d99..538ddf8cf639fe205ae965fcbfa6208003a26a73 100644 (file)
@@ -158,6 +158,8 @@ rspamd_stat_init (struct rspamd_config *cfg, struct event_base *ev_base)
                cl->subrs->init_func (cfg->cfg_pool, cl);
 
                /* Init classifier cache */
+               cache_name = NULL;
+
                if (clf->opts) {
                        cache_obj = ucl_object_find_key (clf->opts, "cache");
                        cache_name_obj = NULL;