Skip to content

Commit

Permalink
Merge pull request trusteddomainproject#213 from branciar/lua_delhead…
Browse files Browse the repository at this point in the history
…er_fix

Fix issue trusteddomainproject#191: make opendkim.del_header function honor header number.
  • Loading branch information
futatuki committed Apr 26, 2024
2 parents 7d24afa + ab81db9 commit 8a5a9da
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 8a5a9da

Please sign in to comment.