mirror of
https://github.com/chatmail/relay.git
synced 2026-05-14 09:54:38 +00:00
opendkim/final.lua: correct header strip iterate
Header indices start from 0
This commit is contained in:
@@ -31,7 +31,7 @@ end
|
||||
if valid then
|
||||
-- Strip all DKIM-Signature headers after successful validation
|
||||
-- Delete in reverse order to avoid index shifting.
|
||||
for i = nsigs, 1, -1 do
|
||||
for i = nsigs - 1, 0, -1 do
|
||||
odkim.del_header(ctx, "DKIM-Signature", i)
|
||||
end
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user