diff --git a/opendkim/opendkim.c b/opendkim/opendkim.c index 1c9a6619..cd250432 100644 --- a/opendkim/opendkim.c +++ b/opendkim/opendkim.c @@ -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);