From fb94e7098a57394ed4242428248dff87e190619b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 22 Jan 2016 16:14:04 +0000 Subject: [PATCH] Fix cache definitions in multiple classifier and no type Issue: #493 Reported by: @wackerm --- src/libstat/stat_config.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libstat/stat_config.c b/src/libstat/stat_config.c index ec73951e8..538ddf8cf 100644 --- a/src/libstat/stat_config.c +++ b/src/libstat/stat_config.c @@ -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; -- 2.39.5