diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-10-31 17:31:16 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-10-31 17:31:16 +0000 |
commit | e2f599d7477081f0b58437b9218d72657883ab01 (patch) | |
tree | a8b124fae4f61cb112076947aa5345950c0672ab /src/libserver/symbols_cache.c | |
parent | 098b9ae4891070d2951094a0324fedd835db74bb (diff) | |
download | rspamd-e2f599d7477081f0b58437b9218d72657883ab01.tar.gz rspamd-e2f599d7477081f0b58437b9218d72657883ab01.zip |
[CritFix] Do not sometimes try to exec posfilters before classification
Diffstat (limited to 'src/libserver/symbols_cache.c')
-rw-r--r-- | src/libserver/symbols_cache.c | 3 |
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: |