]> source.dussan.org Git - rspamd.git/commitdiff
[CritFix] Do not sometimes try to exec posfilters before classification
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 31 Oct 2016 17:31:16 +0000 (17:31 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 31 Oct 2016 17:31:16 +0000 (17:31 +0000)
src/libserver/symbols_cache.c

index 2105eddeadb71a553e11d8e6d78b5e10bb7d17de..1313f0840fdf704cdadea74aa9d533e657aa7f2a 100644 (file)
@@ -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: