From d0b61144907b4ed989aab3b18c44324c302f7e90 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 4 Apr 2023 22:31:13 +0100 Subject: [PATCH] [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 e160d34a7b..4d8720edbc 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; -- 2.47.3