projects
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
362e416
)
Fix ipv6-less build
author
Jeremy Harris
<jgh146exb@wizmail.org>
Sat, 10 Aug 2019 17:29:26 +0000
(18:29 +0100)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Sat, 10 Aug 2019 17:29:26 +0000
(18:29 +0100)
Broken-by: de2e5b3dc6
src/src/lookups/spf.c
patch
|
blob
|
blame
|
history
diff --git
a/src/src/lookups/spf.c
b/src/src/lookups/spf.c
index 6defad72bf52ab021f325adc38402c6aeabbcd83..db2c33631f9e83484b77119f068f7f8956e48f17 100644
(file)
--- 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))
{