$NetBSD: patch-aa,v 1.2 2006/10/12 12:19:09 obache Exp $

--- spamass-milter.cpp.orig	2006-03-23 21:41:36.000000000 +0000
+++ spamass-milter.cpp
@@ -2033,7 +2033,7 @@ cmp_nocase_partial(const string& s, cons
   string::const_iterator p=s.begin();
   string::const_iterator p2=s2.begin();
 
-  while ( p != s.end() && p2 <= s2.end() ) {
+  while ( p != s.end() ) {
     if (toupper(*p) != toupper(*p2))
     {
       debug(D_STR, "c_nc_p: <%s><%s> : miss", s.c_str(), s2.c_str());
