Skip to content

Commit

Permalink
arc.lua: fix signature of ARC-Seal header
Browse files Browse the repository at this point in the history
The ARC Set header field values must be supplied to the hash function in increasing
instance order, starting at 1.
Defined in https://www.rfc-editor.org/rfc/rfc8617.html#section-5.1.1.
  • Loading branch information
jendis committed Mar 30, 2023
1 parent 7a71edd commit 6b1386d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/lua/arc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ local function arc_sign_seal(task, params, header)
local cur_idx = 1
if arc_seals then
cur_idx = #arc_seals + 1
for i = (cur_idx - 1), 1, (-1) do
for i = 1, #arc_seals, 1 do
if arc_auth_results[i] then
local s = dkim_canonicalize('ARC-Authentication-Results',
arc_auth_results[i].raw_header)
Expand Down

0 comments on commit 6b1386d

Please sign in to comment.