More signed/unsigned fixes. Need confirmation that this completely deals with bug...
authorNigel Metheringham <nigel@exim.org>
Wed, 11 Nov 2009 14:43:28 +0000 (14:43 +0000)
committerNigel Metheringham <nigel@exim.org>
Wed, 11 Nov 2009 14:43:28 +0000 (14:43 +0000)
src/src/lookups/spf.c

index 7f7b6f141c93664852679ff0785a8e6e3cda3427..ee2a2c7b9f9cc3318fc3e436c5938429bdcbfabf 100644 (file)
@@ -1,4 +1,4 @@
-/* $Cambridge: exim/src/src/lookups/spf.c,v 1.2 2005/06/27 18:01:02 tom Exp $ */
+/* $Cambridge: exim/src/src/lookups/spf.c,v 1.3 2009/11/11 14:43:28 nm4 Exp $ */
 
 /*************************************************
 *     Exim - an Internet mail transport agent    *
@@ -59,11 +59,11 @@ int spf_find(void *handle, uschar *filename, uschar *keystring, int key_len,
     return FAIL;
   }
 
-  if (SPF_request_set_ipv4_str(spf_request, filename)) {
+  if (SPF_request_set_ipv4_str(spf_request, CS filename)) {
     *errmsg = string_sprintf("invalid IP address '%s'", filename);
     return FAIL;
   }
-  if (SPF_request_set_env_from(spf_request, keystring)) {
+  if (SPF_request_set_env_from(spf_request, CS keystring)) {
     *errmsg = string_sprintf("invalid envelope from address '%s'", keystring);
     return FAIL;
   }