summaryrefslogtreecommitdiffstats
path: root/main/libspf2/libspf2-localpolicy-fix.patch
blob: 346bfbfd7de6b8e5243f4483885400d60823994d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- libspf2-1.2.9/src/libspf2/spf_interpret.c	Wed Oct 22 15:47:43 2008
+++ libspf2-1.2.9.patched/src/libspf2/spf_interpret.c	Mon Sep 21 12:22:51 2009
@@ -1261,6 +1261,7 @@
 		 */
 
 		if ( mech == local_policy ) {
+			spf_request->use_local_policy = 0;
 			err = SPF_record_interpret(spf_server->local_policy,
 							spf_request, spf_response, depth + 1);
 
--- libspf2-1.2.9/src/spfquery/spfquery.c	Mon Sep 15 00:17:49 2008
+++ libspf2-1.2.9.patched/src/spfquery/spfquery.c	Mon Sep 21 12:14:38 2009
@@ -602,6 +602,7 @@
 		FREE_RESPONSE(spf_response);
 
 		spf_request = SPF_request_new(spf_server);
+		spf_request->use_local_policy = 1;
 
 		if (SPF_request_set_ipv4_str(spf_request, req->ip)
 				&& SPF_request_set_ipv6_str(spf_request, req->ip)) {