From: Vsevolod Stakhov Date: Thu, 15 Mar 2018 10:28:34 +0000 (+0000) Subject: [Minor] Disallow cached action one more time X-Git-Tag: 1.7.1~44 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fcd3694e29f10b8709ae6bf66fe276691c134c01;p=thirdparty%2Frspamd.git [Minor] Disallow cached action one more time --- diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c index 640d778e67..d9bcecb637 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) {