changeset 417:d1976e04f5ba

spf code now handles mx,exists,ptr tags, multiple A records, %{i} macro
author Carl Byington <carl@five-ten-sg.com>
date Tue, 25 Apr 2017 15:33:38 -0700
parents 7431e948b5c3
children ea4f86e2db42
files src/context.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/context.cpp	Tue Apr 25 15:26:51 2017 -0700
+++ b/src/context.cpp	Tue Apr 25 15:33:38 2017 -0700
@@ -1148,7 +1148,7 @@
             inet_ntop(AF_INET, (const u_char *)&priv->ip, adr, sizeof(adr));
             size_t bn = strlen(buf);
             size_t an = strlen(adr);
-            if ((bn - 4 + an) < maxlen) {
+            if ((bn - 4 + an) < (size_t)maxlen) {
                 size_t n = p - buf;         // leading part length
                 strncpy(repl, buf, n);      // leading part
                 strcpy(repl+n, adr);        // replacement