summaryrefslogtreecommitdiffstats
path: root/rfc1035/rfc1035mxlist.c
diff options
context:
space:
mode:
authorSam Varshavchik2021-11-11 19:31:10 -0500
committerSam Varshavchik2021-11-11 19:31:10 -0500
commit424cf6965d8144f5ecd0aecd9f45362bbb22a167 (patch)
tree92f677621d4048b41bbc7557f90d0de336b26bfc /rfc1035/rfc1035mxlist.c
parent9183636bf975dc6a91f264a966d76dc53942c53f (diff)
downloadcourier-libs-424cf6965d8144f5ecd0aecd9f45362bbb22a167.tar.bz2
rfc1035mxlist: add an distinct return code for "MX ." reply.
Diffstat (limited to 'rfc1035/rfc1035mxlist.c')
-rw-r--r--rfc1035/rfc1035mxlist.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/rfc1035/rfc1035mxlist.c b/rfc1035/rfc1035mxlist.c
index 48c5f3c..cd08a11 100644
--- a/rfc1035/rfc1035mxlist.c
+++ b/rfc1035/rfc1035mxlist.c
@@ -382,6 +382,12 @@ int seen_good=0;
replyp->allrrs[index]->rr.mx.mx_label, mxname) == 0)
continue;
+ if (*mxname == 0) /* MX . */
+ {
+ rfc1035_replyfree(replyp);
+ return (RFC1035_MX_NONE);
+ }
+
switch (add_arecords(res, list, replyp,
replyp->allrrs[index]->rr.mx.preference,
mxname,