diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-11-18 22:03:07 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-11-18 22:03:07 +0000 |
commit | d7403219fd4e1836879a6987debd9850186b165a (patch) | |
tree | 7d9bee8aede2f238ede28cdf0112c788decfbe23 | |
parent | 7e9d402740b321964975633feaaa664384cc04f3 (diff) | |
download | rspamd-d7403219fd4e1836879a6987debd9850186b165a.tar.gz rspamd-d7403219fd4e1836879a6987debd9850186b165a.zip |
[Minor] Never treat no action score as required score
-rw-r--r-- | src/libserver/task.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/task.c b/src/libserver/task.c index 5986b8567..7fc6728e8 100644 --- a/src/libserver/task.c +++ b/src/libserver/task.c @@ -1444,7 +1444,7 @@ rspamd_task_get_required_score (struct rspamd_task *task, struct rspamd_metric_r } } - for (i = METRIC_ACTION_REJECT; i < METRIC_ACTION_MAX; i ++) { + for (i = METRIC_ACTION_REJECT; i < METRIC_ACTION_NOACTION; i ++) { if (!isnan (m->actions_limits[i])) { return m->actions_limits[i]; } |