File: check-correct-domain.patch

package info (click to toggle)
opendmarc 1.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 9,676 kB
  • sloc: xml: 291,627; ansic: 14,115; perl: 2,384; sh: 460; makefile: 212; python: 58
file content (15 lines) | stat: -rw-r--r-- 658 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: opendmarc-check: print correct domain in loop
Author: Maximilian Eschenbacher <maximilian@eschenbacher.email>
Bug: https://github.com/trusteddomainproject/OpenDMARC/pull/209

--- a/opendmarc/opendmarc-check.c
+++ b/opendmarc/opendmarc-check.c
@@ -223,7 +223,7 @@
 		rua = opendmarc_policy_fetch_rua(dmarc, NULL, 0, 1);
 		ruf = opendmarc_policy_fetch_ruf(dmarc, NULL, 0, 1);
 
-		fprintf(stdout, "DMARC record for %s:\n", argv[1]);
+		fprintf(stdout, "DMARC record for %s:\n", argv[c]);
 		fprintf(stdout, "\tSample percentage: %d\n", pct);
 		fprintf(stdout, "\tDKIM alignment: %s\n", adkim);
 		fprintf(stdout, "\tSPF alignment: %s\n", aspf);