aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-14 13:45:39 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-14 13:45:39 +0000
commita32bcc60f1e80fa3d351ae0a050b5fc13f48dc5a (patch)
treee596104e7b215c18497f9424a2ef4945185ee32f /src/libstat
parent77d8fb13d64763071febb3980c016c5f4976b70d (diff)
downloadrspamd-a32bcc60f1e80fa3d351ae0a050b5fc13f48dc5a.tar.gz
rspamd-a32bcc60f1e80fa3d351ae0a050b5fc13f48dc5a.zip
[Minor] Avoid using of the cached result
Diffstat (limited to 'src/libstat')
-rw-r--r--src/libstat/stat_process.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c
index e09673783..2284907a1 100644
--- a/src/libstat/stat_process.c
+++ b/src/libstat/stat_process.c
@@ -1122,9 +1122,7 @@ rspamd_stat_check_autolearn (struct rspamd_task *task)
if (mres) {
- if (mres->action == METRIC_ACTION_MAX) {
- mres->action = rspamd_check_action_metric (task, mres);
- }
+ mres->action = rspamd_check_action_metric (task, mres);
if (mres->score > rspamd_task_get_required_score (task, mres)) {
task->flags |= RSPAMD_TASK_FLAG_LEARN_SPAM;