Mercurial > dnsbl
comparison src/context.cpp @ 405:8f3a84de3739 stable-6-0-53-2
handle redirect= elements in spf txt records
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 17 Mar 2017 13:50:38 -0700 |
parents | b48ee4bc431b |
children | 29d54e7028f6 |
comparison
equal
deleted
inserted
replaced
404:1ac5e2e0e963 | 405:8f3a84de3739 |
---|---|
1180 return true; | 1180 return true; |
1181 } | 1181 } |
1182 } | 1182 } |
1183 } | 1183 } |
1184 p = buf; | 1184 p = buf; |
1185 while ((level < 5) && (p = strstr(p, " include:"))) { | 1185 while ((level < 5) && ((p = strstr(p, " redirect=")))) { |
1186 p += 10; | |
1187 char *b = strchr(p, ' '); | |
1188 if (b) *b = '\0'; | |
1189 if (resolve_spf(p, ip, priv, level+1)) return true; | |
1190 if (b) *b = ' '; | |
1191 p = (b) ? b : e; | |
1192 } | |
1193 p = buf; | |
1194 while ((level < 5) && ((p = strstr(p, " include:")))) { | |
1186 p += 9; | 1195 p += 9; |
1187 char *b = strchr(p, ' '); | 1196 char *b = strchr(p, ' '); |
1188 if (b) *b = '\0'; | 1197 if (b) *b = '\0'; |
1189 if (resolve_spf(p, ip, priv, level+1)) return true; | 1198 if (resolve_spf(p, ip, priv, level+1)) return true; |
1190 if (b) *b = ' '; | 1199 if (b) *b = ' '; |