aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-10-31 17:31:16 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-10-31 17:31:16 +0000
commite2f599d7477081f0b58437b9218d72657883ab01 (patch)
treea8b124fae4f61cb112076947aa5345950c0672ab
parent098b9ae4891070d2951094a0324fedd835db74bb (diff)
downloadrspamd-e2f599d7477081f0b58437b9218d72657883ab01.tar.gz
rspamd-e2f599d7477081f0b58437b9218d72657883ab01.zip
[CritFix] Do not sometimes try to exec posfilters before classification
-rw-r--r--src/libserver/symbols_cache.c3
1 files changed, 3 insertions, 0 deletions
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: