summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2019-11-11 17:20:26 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2019-11-11 17:20:26 +0000
commitbf7eaa8040b3c977c3ee2ebb9537a3dbfdcefa12 (patch)
treea13dc8dfb9c67ad1334c3be3803ed0c7442a6e1b
parentff125cabdf1328f7b50fa47459c22ebef5dacd7f (diff)
fix 'mx:' mechanism in smtpd spf walk
diff from Quentin Rameau <quinq@fifth.space>
-rw-r--r--usr.sbin/smtpd/spfwalk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/spfwalk.c b/usr.sbin/smtpd/spfwalk.c
index b643552d71d..d28fa58cda0 100644
--- a/usr.sbin/smtpd/spfwalk.c
+++ b/usr.sbin/smtpd/spfwalk.c
@@ -217,8 +217,8 @@ dispatch_txt(struct dns_rr *rr)
lookup_record(T_MX, buf2, dispatch_mx);
continue;
}
- if (strncasecmp("mx:", *ap, 2) == 0) {
- lookup_record(T_MX, *(ap) + 2, dispatch_mx);
+ if (strncasecmp("mx:", *ap, 3) == 0) {
+ lookup_record(T_MX, *(ap) + 3, dispatch_mx);
continue;
}
}