summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2019-08-10 18:29:26 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2019-08-10 18:29:26 +0100
commit30afa09ebdb98fdb50fc60f0ce0cb4974bde1225 (patch)
treec363c9a9d1ee82aba567b28a5ad2e8268fa9427b
parent362e4161e252f96a7b529d52f650ddc88d1cc9f7 (diff)
Fix ipv6-less build
Broken-by: de2e5b3dc6
-rw-r--r--src/src/lookups/spf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/src/lookups/spf.c b/src/src/lookups/spf.c
index 6defad72b..db2c33631 100644
--- a/src/src/lookups/spf.c
+++ b/src/src/lookups/spf.c
@@ -65,9 +65,11 @@ if (!(spf_request = SPF_request_new(spf_server)))
#if HAVE_IPV6
switch (string_is_ip_address(filename, NULL))
+#else
+switch (4)
+#endif
{
case 4:
-#endif
if (!SPF_request_set_ipv4_str(spf_request, CS filename))
break;
*errmsg = string_sprintf("invalid IPv4 address '%s'", filename);
@@ -83,8 +85,8 @@ switch (string_is_ip_address(filename, NULL))
default:
*errmsg = string_sprintf("invalid IP address '%s'", filename);
return FAIL;
- }
#endif
+ }
if (SPF_request_set_env_from(spf_request, CS keystring))
{