aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-04-04 22:31:13 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-04-04 22:31:13 +0100
commitd0b61144907b4ed989aab3b18c44324c302f7e90 (patch)
treea79329d6a857af35e504763f140af9f393c9a2ed
parente9fec3409a40bc89000d97130239a5867a1d6eb7 (diff)
downloadrspamd-d0b61144907b4ed989aab3b18c44324c302f7e90.tar.gz
rspamd-d0b61144907b4ed989aab3b18c44324c302f7e90.zip
[Rework] Default max shots must not influence options
Issue: #4450
-rw-r--r--src/libmime/scan_result.c3
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;