diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-15 10:28:34 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-15 10:28:34 +0000 |
commit | fcd3694e29f10b8709ae6bf66fe276691c134c01 (patch) | |
tree | e8f0ad9010797877cd9e4a7182402777b8b7126e /src/libserver/protocol.c | |
parent | 6ea28fcae880df9f2af0f694d49174dd30793548 (diff) | |
download | rspamd-fcd3694e29f10b8709ae6bf66fe276691c134c01.tar.gz rspamd-fcd3694e29f10b8709ae6bf66fe276691c134c01.zip |
[Minor] Disallow cached action one more time
Diffstat (limited to 'src/libserver/protocol.c')
-rw-r--r-- | src/libserver/protocol.c | 6 |
1 files changed, 1 insertions, 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) { |