[opendmarc-dev] OpenDMARC 1.2.1 Beta1 available
Andreas Schulze
sca at andreasschulze.de
Sat Mar 29 12:37:02 PDT 2014
Murray S. Kucherawy:
> Try the attached patch.
If a TrustedAuthservID was given the patch logging looks like
(none)foo
My modification log (none) OR a TrustedAuthservID:
Index: opendmarc-1.2.1.beta1/opendmarc/opendmarc.c
===================================================================
--- opendmarc-1.2.1.beta1.orig/opendmarc/opendmarc.c 2014-03-29
13:44:29.000000000 +0100
+++ opendmarc-1.2.1.beta1/opendmarc/opendmarc.c 2014-03-29
20:11:39.000000000 +0100
@@ -4315,14 +4315,21 @@
VERSION, argstr);
memset(argstr, '\0', sizeof argstr);
- n = sizeof argstr;
- for (c = 0; curconf->conf_trustedauthservids[c] != NULL; c++)
+ if (curconf->conf_trustedauthservids == NULL)
{
- if (c != 0)
- strlcat(argstr, ", ", n);
- strlcat(argstr,
- curconf->conf_trustedauthservids[c],
- n);
+ strlcpy(argstr, "(none)", sizeof argstr);
+ }
+ else
+ {
+ n = sizeof argstr;
+ for (c = 0;
curconf->conf_trustedauthservids[c] != NULL; c++)
+ {
+ if (c != 0)
+ strlcat(argstr, ", ", n);
+ strlcat(argstr,
+ curconf->conf_trustedauthservids[c],
+ n);
+ }
}
syslog(LOG_INFO, "trusted authentication services: %s",
Andreas
More information about the opendmarc-dev
mailing list