Skip to content

Commit

Permalink
mail/opendmarc: Fix crash on FreeBSD >= 14.1
Browse files Browse the repository at this point in the history
PR:		279780
Obtained from:	trusteddomainproject/OpenDMARC#245
Tested by:	leres, John R <[email protected]>
Approved by:	hrs (mentor), maintainer timeout (6 weeks)
  • Loading branch information
Yasuhito FUTATSUKI authored and nanorkyo committed Aug 10, 2024
1 parent 0f9faea commit 0e91769
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mail/opendmarc/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PORTNAME= opendmarc
PORTVERSION= 1.4.2
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= mail security
MASTER_SITES= GH

Expand Down
10 changes: 10 additions & 0 deletions mail/opendmarc/files/patch-libopendmarc_opendmarc__dns.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- libopendmarc/opendmarc_dns.c.orig 2021-12-20 06:40:37 UTC
+++ libopendmarc/opendmarc_dns.c
@@ -203,6 +203,7 @@ dmarc_dns_get_record(char *domain, int *reply, char *g
++bp;

#ifdef HAVE_RES_NINIT
+ memset(&resp, '\0', sizeof resp);
res_ninit(&resp);
#ifdef RES_USE_DNSSEC
resp.options |= RES_USE_DNSSEC;

0 comments on commit 0e91769

Please sign in to comment.