From fcd3694e29f10b8709ae6bf66fe276691c134c01 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 15 Mar 2018 10:28:34 +0000 Subject: [PATCH] [Minor] Disallow cached action one more time --- src/libserver/protocol.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c index 640d778e6..d9bcecb63 100644 --- a/src/libserver/protocol.c +++ b/src/libserver/protocol.c @@ -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) { -- 2.39.5