]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Never treat no action score as required score
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 18 Nov 2017 22:03:07 +0000 (22:03 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 18 Nov 2017 22:03:07 +0000 (22:03 +0000)
src/libserver/task.c

index 5986b856742334b03296294f85ed4ab0324801bf..7fc6728e8307d4982a8fb381e69eb37175fd5f8f 100644 (file)
@@ -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];
                }