]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
fixed valgrind error
authorRuss Combs <rucombs@cisco.com>
Tue, 8 Jul 2014 21:56:55 +0000 (17:56 -0400)
committerRuss Combs <rucombs@cisco.com>
Tue, 8 Jul 2014 21:56:55 +0000 (17:56 -0400)
src/service_inspectors/wizard/spells.cc

index fecbb469fc20ef49f03da4fe4158a340558bbf7d..ece9b8c8947988e8ba1cb865f1115c54567be2f1 100644 (file)
@@ -137,7 +137,7 @@ MagicPage* SpellBook::find_spell(
         }
         if ( p->any )
         {
-            while ( s[i] )
+            while ( i < n )
             {
                 if ( MagicPage* q = find_spell(s, n, p->any, i) )
                     return q;