]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[CritFix] Pre-filters and post-filters were completely broken
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 3 May 2016 15:49:59 +0000 (16:49 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 3 May 2016 15:50:57 +0000 (16:50 +0100)
src/lua/lua_config.c

index a6ede8efa473631f2afb16b2f93b15db13246c79..2e5237a09784d4aa4a8fa3e7dc560b6a2122b697 100644 (file)
@@ -644,14 +644,6 @@ rspamd_lua_call_post_filters (struct rspamd_task *task)
        struct rspamd_task **ptask;
        GList *cur;
 
-       if (task->checkpoint == NULL) {
-               task->checkpoint = GUINT_TO_POINTER (0x1);
-       }
-       else {
-               /* Do not process if done */
-               return;
-       }
-
        cur = task->cfg->post_filters;
        while (cur) {
                cd = cur->data;
@@ -716,14 +708,6 @@ rspamd_lua_call_pre_filters (struct rspamd_task *task)
        struct rspamd_task **ptask;
        GList *cur;
 
-       if (task->checkpoint == NULL) {
-               task->checkpoint = GUINT_TO_POINTER (0x1);
-       }
-       else {
-               /* Do not process if done */
-               return;
-       }
-
        cur = task->cfg->pre_filters;
        while (cur) {
                cd = cur->data;