From: Cursor Agent Date: Fri, 3 Oct 2025 19:22:18 +0000 (+0000) Subject: Fix: Return early in check_quantity_received to avoid unnecessary checks X-Git-Tag: 3.13.2~7^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F5658%2Fhead;p=thirdparty%2Frspamd.git Fix: Return early in check_quantity_received to avoid unnecessary checks Co-authored-by: v --- diff --git a/src/plugins/lua/once_received.lua b/src/plugins/lua/once_received.lua index 5c5ff7986d..7c56ac7117 100644 --- a/src/plugins/lua/once_received.lua +++ b/src/plugins/lua/once_received.lua @@ -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