]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix iteration
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 8 Jan 2022 20:44:45 +0000 (20:44 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 8 Jan 2022 20:44:45 +0000 (20:44 +0000)
src/plugins/lua/arc.lua

index ca2f561a52449d72974c1c0f7591cdf2e8de7b3a..8252424ab1587eccf5028e1750109ed472bbbd98 100644 (file)
@@ -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])