Subversion Repositories

?revision_form?Rev ?revision_input??revision_submit??revision_endform?

Rev 43 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 43 Rev 47
Line 273... Line 273...
273
-		for (int j=1; j<sizeof(values)/sizeof(values[0]); j++)
273
-		for (int j=1; j<sizeof(values)/sizeof(values[0]); j++)
274
+		for (unsigned j=1; j<sizeof(values)/sizeof(values[0]); j++)
274
+		for (unsigned j=1; j<sizeof(values)/sizeof(values[0]); j++)
275
 		{
275
 		{
276
 			if (values[j] != NULL && values[j] < values[0])
276
 			if (values[j] != NULL && values[j] < values[0])
277
 			{
277
 			{
278
@@ -1411,8 +1411,8 @@
-
 
279
 				return DKIM_POLICY_DNS_PERM_FAILURE;
-
 
280
 			}
-
 
281
 
-
 
282
-			unsigned pos = sDomain.find('.');
-
 
283
-			if (pos == -1 || sDomain.find('.', pos+1) == -1)
-
 
284
+			string::size_type pos = sDomain.find('.');
-
 
285
+			if (pos == string::npos || sDomain.find('.', pos+1) == string::npos)
-
 
286
 			{
-
 
287
 				// SSP not found but the domain exists, it's non-suspicious
-
 
288
 				iSSP = DKIM_SSP_UNKNOWN;
-
 
289
diff -ru libdkim-1.0.19.orig/src/libdkimtest.cpp libdkim-1.0.19/src/libdkimtest.cpp
278
diff -ru libdkim-1.0.19.orig/src/libdkimtest.cpp libdkim-1.0.19/src/libdkimtest.cpp
290
--- libdkim-1.0.19.orig/src/libdkimtest.cpp	2008-05-12 20:08:54.000000000 +1000
279
--- libdkim-1.0.19.orig/src/libdkimtest.cpp	2008-05-12 20:08:54.000000000 +1000
291
+++ libdkim-1.0.19/src/libdkimtest.cpp	2009-04-15 19:38:08.000000000 +1000
280
+++ libdkim-1.0.19/src/libdkimtest.cpp	2009-04-15 19:38:08.000000000 +1000
292
@@ -60,9 +60,9 @@
281
@@ -60,9 +60,9 @@
293
 int main(int argc, char* argv[])
282
 int main(int argc, char* argv[])