diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-01-14 17:25:56 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-01-14 17:25:56 +0000 |
commit | 9546576a9e449ac0d57246679af8b00d940af55b (patch) | |
tree | 5822f2d6c6c604ba48ebac04173be245f8815c2c /src/libmime | |
parent | aa07f4bc9eff2a252743e20faa334f2aa7d589d5 (diff) | |
download | rspamd-9546576a9e449ac0d57246679af8b00d940af55b.tar.gz rspamd-9546576a9e449ac0d57246679af8b00d940af55b.zip |
[Minor] Fix some issues
Diffstat (limited to 'src/libmime')
-rw-r--r-- | src/libmime/filter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmime/filter.c b/src/libmime/filter.c index 46a0e5b92..ea9b500c9 100644 --- a/src/libmime/filter.c +++ b/src/libmime/filter.c @@ -499,7 +499,7 @@ rspamd_check_action_metric (struct rspamd_task *task) /* We are not certain about the results during processing */ if (mres->passthrough_result == NULL) { - for (i = 0; i < mres->nactions; i++) { + for (i = mres->nactions - 1; i >= 0; i--) { action_lim = &mres->actions_limits[i]; sc = action_lim->cur_limit; @@ -517,7 +517,7 @@ rspamd_check_action_metric (struct rspamd_task *task) } } - if (set_action && selected_action == NULL) { + if (selected_action == NULL) { selected_action = noaction->action; } } |