From: Vsevolod Stakhov Date: Mon, 31 Oct 2016 17:31:16 +0000 (+0000) Subject: [CritFix] Do not sometimes try to exec posfilters before classification X-Git-Tag: 1.4.0~162 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2f599d7477081f0b58437b9218d72657883ab01;p=thirdparty%2Frspamd.git [CritFix] Do not sometimes try to exec posfilters before classification --- diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c index 2105eddead..1313f0840f 100644 --- a/src/libserver/symbols_cache.c +++ b/src/libserver/symbols_cache.c @@ -1664,9 +1664,12 @@ rspamd_symbols_cache_process_symbols (struct rspamd_task * task, if (checkpoint->waitq->len == 0 || stage == RSPAMD_TASK_STAGE_POST_FILTERS) { checkpoint->pass = RSPAMD_CACHE_PASS_POSTFILTERS; + } + if (stage == RSPAMD_TASK_STAGE_POST_FILTERS) { return rspamd_symbols_cache_process_symbols (task, cache, stage); } + break; case RSPAMD_CACHE_PASS_POSTFILTERS: