aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/spf.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-09-07 19:04:01 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-09-07 19:04:01 +0100
commit5ac4d8aad6743bbfb4c46fdb00c0e4bf562ba244 (patch)
tree173be82a9e48b4d254b2cc4a1dc847efdace6978 /src/libserver/spf.c
parent6a0f96a890b86d68680a994a807c96ccc8281bf4 (diff)
downloadrspamd-5ac4d8aad6743bbfb4c46fdb00c0e4bf562ba244.tar.gz
rspamd-5ac4d8aad6743bbfb4c46fdb00c0e4bf562ba244.zip
[Fix] Fix PTR processing in SPF
Issue: #1828
Diffstat (limited to 'src/libserver/spf.c')
-rw-r--r--src/libserver/spf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libserver/spf.c b/src/libserver/spf.c
index a3a1b95f8..df8af3bf3 100644
--- a/src/libserver/spf.c
+++ b/src/libserver/spf.c
@@ -670,6 +670,10 @@ spf_record_dns_callback (struct rdns_reply *reply, gpointer arg)
cb->rec->requests_inflight++;
}
}
+ else {
+ cb->addr->flags |= RSPAMD_SPF_FLAG_RESOLVED;
+ cb->addr->flags &= ~RSPAMD_SPF_FLAG_PERMFAIL;
+ }
}
else {
cb->addr->flags |= RSPAMD_SPF_FLAG_RESOLVED;