mirror of
https://github.com/chatmail/relay.git
synced 2026-05-21 05:18:04 +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
|
if valid then
|
||||||
-- Strip all DKIM-Signature headers after successful validation
|
-- Strip all DKIM-Signature headers after successful validation
|
||||||
-- Delete in reverse order to avoid index shifting.
|
-- 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)
|
odkim.del_header(ctx, "DKIM-Signature", i)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user