aboutsummaryrefslogtreecommitdiff
path: root/src/spf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/spf.c')
-rw-r--r--src/spf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/spf.c b/src/spf.c
index 05fbd538..0b570a04 100644
--- a/src/spf.c
+++ b/src/spf.c
@@ -659,7 +659,7 @@ static spf_term_result
mech_mx(spf_data *dat, spf_term_arg *arg, unsigned long masklen)
{
unsigned long netmask = make_netmask(masklen);
- struct mxbuf mxbuf;
+ struct dns_reply reply;
size_t i;
spf_term_result result = spf_term_nomatch;
const char *domain_spec;
@@ -673,14 +673,14 @@ mech_mx(spf_data *dat, spf_term_arg *arg, unsigned long masklen)
("MX domain_spec=%s, netmask=%lx",
domain_spec, netmask));
- DNS_CATCH(dns_get_mx_records(domain_spec, 1, &mxbuf));
+ DNS_CATCH(dns_get_mx_records(domain_spec, &reply));
- for (i = 0; i < mxbuf.mx_cnt; i++) {
+ for (i = 0; i < reply.count; i++) {
spf_term_arg targ;
spf_term_result res;
targ.type = spf_arg_domain_spec;
- targ.v.domain_spec = mxbuf.mx_buf[i];
+ targ.v.domain_spec = reply.data.str[i];
res = mech_a(dat, &targ, masklen);
if (res == spf_term_match) {
result = res;
@@ -688,7 +688,7 @@ mech_mx(spf_data *dat, spf_term_arg *arg, unsigned long masklen)
}
}
- mxbuf_free(&mxbuf);
+ dns_reply_free(&reply);
return result;
}

Return to:

Send suggestions and report system problems to the System administrator.