]> git.sur5r.net Git - openldap/commitdiff
Bug Fix : removing problematic counter increment
authorSang Seok Lim <slim@openldap.org>
Fri, 17 Sep 2004 16:49:38 +0000 (16:49 +0000)
committerSang Seok Lim <slim@openldap.org>
Fri, 17 Sep 2004 16:49:38 +0000 (16:49 +0000)
servers/slapd/component.c

index 0a0b22f17ec9bada3b14526a73ab07d508658f31..75920a06e3b905dd9ed6c3a5fda5e7e4dd33234c 100644 (file)
@@ -95,11 +95,8 @@ get_comp_filter ( Operation* op, struct berval* bv, ComponentFilter** filt,
 static void
 eat_whsp( ComponentAssertionValue* cav )
 {
-       int count = 0;
-       for ( ; ; ) {
-               if ( cav->cav_ptr[count++] == ' ' ) cav->cav_ptr++;
-               else break;
-       }
+       while ( ( cav->cav_ptr <= cav->cav_end ) && ( *cav->cav_ptr == ' ' ) )
+               cav->cav_ptr++;
 }
 
 static int