Skip to content

Commit

Permalink
Fix Lua odkim.del_header() to actually delete the requested header nu…
Browse files Browse the repository at this point in the history
…mber instead of the first one
  • Loading branch information
branciar committed Apr 5, 2024
1 parent 551ab38 commit ab81db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opendkim/opendkim.c
Original file line number Diff line number Diff line change
Expand Up @@ -3719,7 +3719,7 @@ dkimf_xs_delheader(lua_State *l)

if (ctx == NULL)
lua_pushnil(l);
else if (dkimf_chgheader(ctx, name, 1, NULL) == MI_SUCCESS)
else if (dkimf_chgheader(ctx, name, idx+1, NULL) == MI_SUCCESS)
lua_pushnumber(l, 1);
else
lua_pushnil(l);
Expand Down

0 comments on commit ab81db9

Please sign in to comment.