Skip to content

Commit

Permalink
Delete Authentication-Results headers in reverse
Browse files Browse the repository at this point in the history
  • Loading branch information
glts committed Oct 14, 2023
1 parent 551ab38 commit 7c70ee7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions opendkim/opendkim.c
Original file line number Diff line number Diff line change
Expand Up @@ -13653,8 +13653,15 @@ mlfi_eom(SMFICTX *ctx)
return SMFIS_TEMPFAIL;
}

c = 0;
c = 1;

for (hdr = dfc->mctx_hqhead; hdr != NULL; hdr = hdr->hdr_next)
{
if (strcasecmp(hdr->hdr_hdr, AUTHRESULTSHDR) == 0)
c++;
}

for (hdr = dfc->mctx_hqtail; hdr != NULL; hdr = hdr->hdr_prev)
{
memset(ares, '\0', sizeof(struct authres));

Expand All @@ -13666,7 +13673,7 @@ mlfi_eom(SMFICTX *ctx)
char *slash;

/* remember index */
c++;
c--;

/* parse the header */
arstat = ares_parse((u_char *) hdr->hdr_val,
Expand Down

0 comments on commit 7c70ee7

Please sign in to comment.