changeset 391:88ef2b4e6f1e

start parsing spf txt records
author Carl Byington <carl@five-ten-sg.com>
date Mon, 06 Mar 2017 17:23:05 -0800
parents bcef093b1ba6
children ea458101de9b
files src/context.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/context.cpp	Mon Mar 06 17:14:41 2017 -0800
+++ b/src/context.cpp	Mon Mar 06 17:23:05 2017 -0800
@@ -1154,7 +1154,7 @@
             }
             if (b) *b = ' ';
             if (s) *s = '/';
-            p = (b) ? b+1 : e;
+            p = (b) ? b : e;
         }
         p = buf;
         while ((level < 5) && (p = strstr(p, " include:"))) {
@@ -1163,7 +1163,7 @@
             if (b) *b = '\0';
             if (resolve_spf(p, ip, priv, level+1)) return true;
             if (b) *b = ' ';
-            p = (b) ? b+1 : e;
+            p = (b) ? b : e;
         }
     }
     return false;