]> git.sur5r.net Git - openldap/commitdiff
fix reqControls validator (partially addresses ITS#6652)
authorPierangelo Masarati <ando@openldap.org>
Sun, 2 Jan 2011 15:50:00 +0000 (15:50 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sun, 2 Jan 2011 15:50:00 +0000 (15:50 +0000)
servers/slapd/overlays/accesslog.c

index 542ad193f070821e64d5e16efe1f4351af309975..af35ac1332a2a692522c8331d3a29c31de22f7b0 100644 (file)
@@ -1066,7 +1066,7 @@ logSchemaControlValidate(
                        return LDAP_INVALID_SYNTAX;
                }
 
-               for ( ; i < val.bv_len; i++ ) {
+               for ( i++; i < val.bv_len; i++ ) {
                        if ( val.bv_val[ i ] == '"' ) {
                                break;
                        }
@@ -1080,7 +1080,7 @@ logSchemaControlValidate(
                        return LDAP_INVALID_SYNTAX;
                }
 
-               for ( ; i < val.bv_len; i++ ) {
+               for ( i++; i < val.bv_len; i++ ) {
                        if ( !ASCII_SPACE( val.bv_val[ i ] ) ) {
                                break;
                        }