summaryrefslogtreecommitdiff
path: root/src/spfdnsip.c
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-03 22:05:52 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-03 22:05:52 +0200
commite6e9663d40f7aab9e1982dddcaa11386551ad182 (patch)
tree39c2a34aa78d4723e8308d270e872f61da3818ca /src/spfdnsip.c
parent20b85c03e751b4876fa3c92040464e483172b746 (diff)
fix issues preventing compilationjannis
Diffstat (limited to 'src/spfdnsip.c')
-rw-r--r--src/spfdnsip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spfdnsip.c b/src/spfdnsip.c
index f2a802e..4e05b31 100644
--- a/src/spfdnsip.c
+++ b/src/spfdnsip.c
@@ -207,10 +207,10 @@ int spf_mx(char *spfspec, char *prefix)
r = SPF_NONE;
for (j = 0; j < ia.len; ++j) {
if (byte_diff(ip6remote, 16, V6localnet) && !ip6_isv4mapped(ip6remote)) {
- if (match_ip6(&ia.ix[j].addr.ip6.d, ipprefix, ip6remote)) return SPF_OK;
+ if (match_ip6(ia.ix[j].addr.ip6.d, ipprefix, ip6remote)) return SPF_OK;
}
if (byte_diff(ip4remote, 4, V4localnet)) {
- if (match_ip4(&ia.ix[j].addr.ip4.d, ipprefix, ip4remote)) return SPF_OK;
+ if (match_ip4(ia.ix[j].addr.ip4.d, ipprefix, ip4remote)) return SPF_OK;
}
}
}