Mercurial > dnsbl
comparison 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 |
comparison
equal
deleted
inserted
replaced
448:53adaef57eb5 | 449:d4275f26241c |
---|---|
1237 log(priv->queueid, "match exists:%s", p); | 1237 log(priv->queueid, "match exists:%s", p); |
1238 return true; | 1238 return true; |
1239 } | 1239 } |
1240 } | 1240 } |
1241 else if (strncmp(p, "mx", 2) == 0) { | 1241 else if (strncmp(p, "mx", 2) == 0) { |
1242 const char *name = (p[2] == ':') ? p+2 : from; | 1242 const char *name = (p[2] == ':') ? p+3 : from; |
1243 char buf[maxdnslength]; | 1243 char buf[maxdnslength]; |
1244 dns_interface(*priv, name, ns_t_mx, false, NULL, buf, maxdnslength); | 1244 dns_interface(*priv, name, ns_t_mx, false, NULL, buf, maxdnslength); |
1245 char *b = buf; | 1245 char *b = buf; |
1246 while (*b) { | 1246 while (*b) { |
1247 log(priv->queueid, "found mx %s", b); | 1247 log(priv->queueid, "found mx %s", b); |