Rev 14 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 14 | Rev 29 | ||
---|---|---|---|
1 | #! /bin/sh /usr/share/dpatch/dpatch-run |
1 | #! /bin/sh /usr/share/dpatch/dpatch-run |
2 | ## 23_spfquery_ipv6.dpatch by Matthias Cramer <matthias.cramer@interway.ch> |
2 | ## 23_spfquery_ipv6.dpatch by Matthias Cramer <matthias.cramer@interway.ch> |
3 | ## |
3 | ## |
4 | ## All lines beginning with `## DP:' are a description of the patch. |
4 | ## All lines beginning with `## DP:' are a description of the patch. |
5 | ## DP: Make spfquery accept IPv6 addresses |
5 | ## DP: Make spfquery accept IPv6 addresses |
6 | 6 | ||
7 | @DPATCH@ |
7 | @DPATCH@ |
8 | 8 | ||
9 | --- libspf2-1.2.5.orig/src/spfquery/spfquery.c 2005-02-22 03:36:55.000000000 +0100 |
9 | --- libspf2-1.2.5.orig/src/spfquery/spfquery.c 2005-02-22 03:36:55.000000000 +0100 |
10 | +++ libspf2-1.2.5.dfsg/src/spfquery/spfquery.c 2007-08-30 09:39:32.000000000 +0200 |
10 | +++ libspf2-1.2.5.dfsg/src/spfquery/spfquery.c 2007-08-30 09:39:32.000000000 +0200 |
11 | @@ -604,7 +602,8 @@ |
11 | @@ -604,7 +602,8 @@ |
12 | 12 | ||
13 | spf_request = SPF_request_new(spf_server); |
13 | spf_request = SPF_request_new(spf_server); |
14 | 14 | ||
15 | - if (SPF_request_set_ipv4_str(spf_request, req->ip)) { |
15 | - if (SPF_request_set_ipv4_str(spf_request, req->ip)) { |
16 | + if (SPF_request_set_ipv4_str(spf_request, req->ip) |
16 | + if (SPF_request_set_ipv4_str(spf_request, req->ip) |
17 | + && SPF_request_set_ipv6_str(spf_request, req->ip)) { |
17 | + && SPF_request_set_ipv6_str(spf_request, req->ip)) { |
18 | printf( "Invalid IP address.\n" ); |
18 | printf( "Invalid IP address.\n" ); |
19 | CONTINUE_ERROR; |
19 | CONTINUE_ERROR; |
20 | 20 |