From e2f599d7477081f0b58437b9218d72657883ab01 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 31 Oct 2016 17:31:16 +0000 Subject: [PATCH] [CritFix] Do not sometimes try to exec posfilters before classification --- src/libserver/symbols_cache.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c index 2105eddea..1313f0840 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: -- 2.39.5