Skip to content

Commit

Permalink
[Rework] Default max shots must not influence options
Browse files Browse the repository at this point in the history
Issue: #4450
  • Loading branch information
vstakhov committed Apr 4, 2023
1 parent e9fec34 commit d0b6114
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libmime/scan_result.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d0b6114

Please sign in to comment.