1031a7b791
libspf2 is an implementation of the Sender Policy Framework (SPF). ok jakob@ merdely@
23 lines
761 B
Plaintext
23 lines
761 B
Plaintext
$OpenBSD: patch-src_spfquery_spfquery_c,v 1.1.1.1 2008/01/30 15:58:50 okan Exp $
|
|
--- src/spfquery/spfquery.c.orig Mon Feb 21 21:36:55 2005
|
|
+++ src/spfquery/spfquery.c Thu Jan 24 22:58:47 2008
|
|
@@ -261,7 +261,7 @@ static void
|
|
response_print_errors(const char *context,
|
|
SPF_response_t *spf_response, SPF_errcode_t err)
|
|
{
|
|
- SPF_error_t *spf_error;;
|
|
+ SPF_error_t *spf_error;
|
|
int i;
|
|
|
|
printf("StartError\n");
|
|
@@ -604,7 +604,8 @@ int main( int argc, char *argv[] )
|
|
|
|
spf_request = SPF_request_new(spf_server);
|
|
|
|
- if (SPF_request_set_ipv4_str(spf_request, req->ip)) {
|
|
+ if (SPF_request_set_ipv4_str(spf_request, req->ip)
|
|
+ && SPF_request_set_ipv6_str(spf_request, req->ip)) {
|
|
printf( "Invalid IP address.\n" );
|
|
CONTINUE_ERROR;
|
|
}
|