commit 5704b3b: [Minor] Fix iteration

Vsevolod Stakhov vsevolod at highsecure.ru
Sat Jan 8 20:49:04 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-01-08 20:44:45 +0000
URL: https://github.com/rspamd/rspamd/commit/5704b3b55f4e0828c85ee786b46e5cfc93013ea7 (HEAD -> master)

[Minor] Fix iteration

---
 src/plugins/lua/arc.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/lua/arc.lua b/src/plugins/lua/arc.lua
index ca2f561a5..8252424ab 100644
--- a/src/plugins/lua/arc.lua
+++ b/src/plugins/lua/arc.lua
@@ -118,7 +118,7 @@ local function parse_arc_header(hdr, target, is_aar)
     else
       -- For AAR we check special case of i=%d and pass everything else to
       -- AAR specific parser
-      for elt in ipairs(elts) do
+      for _,elt in ipairs(elts) do
         if string.match(elt, "%s*i%s*=%s*%d+%s*") then
           local pair = lua_util.rspamd_str_split(elt, '=')
           fill_arc_header_table(pair, target[i])


More information about the Commits mailing list