]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Rework] Default max shots must not influence options
authorVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 4 Apr 2023 21:31:13 +0000 (22:31 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 4 Apr 2023 21:31:13 +0000 (22:31 +0100)
Issue: #4450

src/libmime/scan_result.c

index e160d34a7b8f825aed98fda8b7e7fb7ec777ac53..4d8720edbc8cceedd4c62694003aa034e9821b22 100644 (file)
@@ -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;