From: Vsevolod Stakhov Date: Tue, 4 Apr 2023 21:31:13 +0000 (+0100) Subject: [Rework] Default max shots must not influence options X-Git-Tag: 3.6~174 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d0b61144907b4ed989aab3b18c44324c302f7e90;p=thirdparty%2Frspamd.git [Rework] Default max shots must not influence options Issue: #4450 --- 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;