[Bug 279780] [patch] mail/opendmarc fix crash on FreeBSD >= 14.1

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 16 Jun 2024 07:44:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279780

            Bug ID: 279780
           Summary: [patch] mail/opendmarc fix crash on FreeBSD >= 14.1
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: freebsd-bug-report-yf@yf.bsdclub.org
                CC: freebsd@gushi.org
                CC: freebsd@gushi.org
             Flags: maintainer-feedback?(freebsd@gushi.org)

Created attachment 251493
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=251493&action=edit
a patch to add files/patch-libopendmarc_opendmarc__dns.c to mail/opendmarc port

After I upgraded FreeBSD from 14.0 to 14.1, opendmarc milter come to crash on
every times when the MTA pass the message to the opendmarc milter.

[[[
Jun 13 02:36:40 mkii opendmarc[2179]: 45CHaefM002265: ignoring invalid
ARC-Authentication-Results header "i=1;  mx1.freebsd.org;        none"
Jun 13 02:36:40 mkii opendmarc[2179]: 45CHaefM002265: SPF(mailfrom):
FreeBSD.org fail
Jun 13 02:36:40 mkii opendmarc[2179]: OpenDMARC Filter: poll() returned
exception for socket, abort
Jun 13 02:36:40 mkii kernel: pid 2179 (opendmarc), jid 0, uid 26: exited on
signal 6 (no core dump - bad address
]]]

It seems it was caused by the Github's issue #245
(https://github.com/trusteddomainproject/OpenDMARC/issues/245).

Before FreeBSD 14.1, it was not triggered because configure script cannot find
res_ninit() because of another issue #257
(https://github.com/trusteddomainproject/OpenDMARC/issues/257), thus the code
was not active.

The patch brought from the issue #245 seems to work for me.

-- 
You are receiving this mail because:
You are the assignee for the bug.