Browse Source

[Minor] Move checks to the correct branch

tags/3.5
Vsevolod Stakhov 1 year ago
parent
commit
e9794d53f3
No account linked to committer's email address
1 changed files with 5 additions and 6 deletions
  1. 5
    6
      src/libmime/scan_result.c

+ 5
- 6
src/libmime/scan_result.c View File

@@ -319,9 +319,6 @@ insert_metric_result (struct rspamd_task *task,
}
else {
if (sdef) {
max_shots = sdef->nshots;
}
else {
if (sdef->groups) {
PTR_ARRAY_FOREACH(sdef->groups, i, gr) {
if (gr->flags & RSPAMD_SYMBOL_GROUP_ONE_SHOT) {
@@ -329,9 +326,11 @@ insert_metric_result (struct rspamd_task *task,
}
}
}
else {
max_shots = task->cfg->default_max_shots;
}

max_shots = MIN(max_shots, sdef->nshots);
}
else {
max_shots = task->cfg->default_max_shots;
}
}


Loading…
Cancel
Save