]> source.dussan.org Git - rspamd.git/commitdiff
RDNS_RC_NOREC is equal for NXDOMAIN in case of SPF checks
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 17 Jan 2016 00:12:11 +0000 (00:12 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 17 Jan 2016 00:12:11 +0000 (00:12 +0000)
src/libserver/spf.c

index c8f8facfee5d8ea285eaf20ba79329c5a65fdbfc..079f118b236b1c29d8be6d04263af27de0f04de1 100644 (file)
@@ -647,7 +647,7 @@ spf_record_dns_callback (struct rdns_reply *reply, gpointer arg)
                        }
                }
        }
-       else if (reply->code == RDNS_RC_NXDOMAIN) {
+       else if (reply->code == RDNS_RC_NXDOMAIN || reply->code == RDNS_RC_NOREC) {
                switch (cb->cur_action) {
                        case SPF_RESOLVE_MX:
                                if (rdns_request_has_type (reply->request, RDNS_REQUEST_MX)) {