diff src/context.cpp @ 390:bcef093b1ba6

start parsing spf txt records
author Carl Byington <carl@five-ten-sg.com>
date Mon, 06 Mar 2017 17:14:41 -0800
parents 2354a1944e49
children 88ef2b4e6f1e
line wrap: on
line diff
--- a/src/context.cpp	Mon Mar 06 16:55:44 2017 -0800
+++ b/src/context.cpp	Mon Mar 06 17:14:41 2017 -0800
@@ -1132,7 +1132,7 @@
         log(priv->queueid, "found txt record %s", buf);
         char *p = buf;
         char *e = p + strlen(p);    // point to trailing null
-        while (p = strstr(p, " ip4:")) {
+        while ((p = strstr(p, " ip4:"))) {
             p += 5;
             char *b = strchr(p, ' ');
             if (b) *b = '\0';