]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Fix: Return early in check_quantity_received to avoid unnecessary checks 5658/head
authorCursor Agent <cursoragent@cursor.com>
Fri, 3 Oct 2025 19:22:18 +0000 (19:22 +0000)
committerCursor Agent <cursoragent@cursor.com>
Fri, 3 Oct 2025 19:22:18 +0000 (19:22 +0000)
Co-authored-by: v <v@rspamd.com>
src/plugins/lua/once_received.lua

index 5c5ff7986d70fdda74d03de32c2e9b2691e18f3f..7c56ac7117ea71040dd154ed50be23482049d4a2 100644 (file)
@@ -88,7 +88,7 @@ local function check_quantity_received (task)
       for _, h in ipairs(bad_hosts) do
         if string.find(hn, h) then
           task:insert_result(symbol_strict, 1, h)
-          break
+          return
         end
       end
     end