diff options
-rw-r--r-- | src/plugins/regexp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c index 8dadffcf1..d1de03588 100644 --- a/src/plugins/regexp.c +++ b/src/plugins/regexp.c @@ -427,6 +427,9 @@ rspamd_regexp_match_number (struct worker_task *task, GList *args) re_cache_add (param_pattern, re); } res += process_regexp (re, task); + if (res >= param_count) { + return TRUE; + } } cur = g_list_next (cur); } |