commit d0b6114: [Rework] Default max shots must not influence options
Vsevolod Stakhov
vsevolod at rspamd.com
Tue Apr 4 21:35:03 UTC 2023
Author: Vsevolod Stakhov
Date: 2023-04-04 22:31:13 +0100
URL: https://github.com/rspamd/rspamd/commit/d0b61144907b4ed989aab3b18c44324c302f7e90 (HEAD -> master)
[Rework] Default max shots must not influence options
Issue: #4450
---
src/libmime/scan_result.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/libmime/scan_result.c b/src/libmime/scan_result.c
index e160d34a7..4d8720edb 100644
--- a/src/libmime/scan_result.c
+++ b/src/libmime/scan_result.c
@@ -766,8 +766,7 @@ rspamd_task_add_result_option (struct rspamd_task *task,
cur->opts_len = -1;
}
- if (!(cur->sym && (cur->sym->flags & RSPAMD_SYMBOL_FLAG_ONEPARAM)) &&
- kh_size (cur->options) < task->cfg->default_max_shots) {
+ if (!(cur->sym && (cur->sym->flags & RSPAMD_SYMBOL_FLAG_ONEPARAM))) {
srch.option = (gchar *) val;
srch.optlen = vlen;
More information about the Commits
mailing list