diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-04-04 22:31:13 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-04-04 22:31:13 +0100 |
commit | d0b61144907b4ed989aab3b18c44324c302f7e90 (patch) | |
tree | a79329d6a857af35e504763f140af9f393c9a2ed | |
parent | e9fec3409a40bc89000d97130239a5867a1d6eb7 (diff) | |
download | rspamd-d0b61144907b4ed989aab3b18c44324c302f7e90.tar.gz rspamd-d0b61144907b4ed989aab3b18c44324c302f7e90.zip |
[Rework] Default max shots must not influence options
Issue: #4450
-rw-r--r-- | src/libmime/scan_result.c | 3 |
1 files changed, 1 insertions, 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; |