diff options
author | Yasuhiro Kimura <yasu@FreeBSD.org> | 2024-06-10 15:20:12 +0900 |
---|---|---|
committer | Yasuhiro Kimura <yasu@FreeBSD.org> | 2024-06-10 15:20:12 +0900 |
commit | d754a77ccf5b313a754473501e39234d9034b32c (patch) | |
tree | 2a5b32e4f78d41d3a316a8d9b47ab012b23b0ba1 /mail/opendkim-devel/files/patch-opendkim_opendkim.c | |
parent | graphics/fotocx: the port had been updated to version 24.40. (diff) |
mail/opendkim-devel: Add new port
* Add mail/opendkim-devel, development snapshot of OpenDKIM.
* Mark mail/opendkim and mail/opendkim-devel as CONFLICTS_INSTALL with
each other
Diffstat (limited to 'mail/opendkim-devel/files/patch-opendkim_opendkim.c')
-rw-r--r-- | mail/opendkim-devel/files/patch-opendkim_opendkim.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/mail/opendkim-devel/files/patch-opendkim_opendkim.c b/mail/opendkim-devel/files/patch-opendkim_opendkim.c new file mode 100644 index 000000000000..8ec336794477 --- /dev/null +++ b/mail/opendkim-devel/files/patch-opendkim_opendkim.c @@ -0,0 +1,36 @@ +commit 7c70ee7c86da1cecc621182355cc950d3b193314 +Author: David Bürgin <dbuergin@gluet.ch> +Date: Sat Oct 14 09:19:37 2023 +0200 + + Delete Authentication-Results headers in reverse + +diff --git opendkim/opendkim.c opendkim/opendkim.c +index 803f37b0..cfa5f018 100644 +--- opendkim/opendkim.c ++++ opendkim/opendkim.c +@@ -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)); + +@@ -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, |