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);
|