aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-07-28 12:39:39 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-07-28 12:39:39 +0100
commit1bf0fb60a13b7bb3fa89f5803bcb1c2f32fa04ff (patch)
tree1abf36ac13c1703f4851728c96c8f35fa44dff2c /src
parent42f020ce8678983ed0f77f408235d082a9a76cbd (diff)
downloadrspamd-1bf0fb60a13b7bb3fa89f5803bcb1c2f32fa04ff.tar.gz
rspamd-1bf0fb60a13b7bb3fa89f5803bcb1c2f32fa04ff.zip
[Minor] Move condition
Diffstat (limited to 'src')
-rw-r--r--src/libserver/re_cache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libserver/re_cache.c b/src/libserver/re_cache.c
index eeda99616..bd207573b 100644
--- a/src/libserver/re_cache.c
+++ b/src/libserver/re_cache.c
@@ -628,10 +628,10 @@ rspamd_re_cache_process_pcre (struct rspamd_re_runtime *rt,
r++;
msg_debug_re_task ("found regexp /%s/, total hits: %d",
rspamd_regexp_get_pattern (re), r);
+ }
- if (max_hits > 0 && r >= max_hits) {
- break;
- }
+ if (max_hits > 0 && r >= max_hits) {
+ break;
}
}