Mercurial > dnsbl
diff src/context.cpp @ 449:d4275f26241c stable-6-0-69
fix spf mx:domain.tld token parsing
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 10 Apr 2018 12:56:07 -0700 |
parents | 78eedbbce636 |
children | f2bc221240e8 |
line wrap: on
line diff
--- a/src/context.cpp Thu Feb 22 09:42:42 2018 -0800 +++ b/src/context.cpp Tue Apr 10 12:56:07 2018 -0700 @@ -1239,7 +1239,7 @@ } } else if (strncmp(p, "mx", 2) == 0) { - const char *name = (p[2] == ':') ? p+2 : from; + const char *name = (p[2] == ':') ? p+3 : from; char buf[maxdnslength]; dns_interface(*priv, name, ns_t_mx, false, NULL, buf, maxdnslength); char *b = buf;