]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Disallow cached action one more time
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 15 Mar 2018 10:28:34 +0000 (10:28 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 15 Mar 2018 10:28:34 +0000 (10:28 +0000)
src/libserver/protocol.c

index 640d778e67e8816c492f513587b28dc9fe7ad33c..d9bcecb6374d955786eca3deaec465539f2d6351 100644 (file)
@@ -860,11 +860,7 @@ rspamd_metric_result_ucl (struct rspamd_task *task,
        gpointer h, v;
        const gchar *subject;
 
-       if (mres->action == METRIC_ACTION_MAX) {
-               mres->action = rspamd_check_action_metric (task, mres);
-       }
-
-       action = mres->action;
+       action = rspamd_check_action_metric (task, mres);
        is_spam = (action < METRIC_ACTION_GREYLIST);
 
        if (task->cmd != CMD_CHECK_V2) {