From cddaeff56527a4caa45d82f26cfd0cc72d49e7c3 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sun, 2 Jan 2011 15:50:00 +0000 Subject: [PATCH] fix reqControls validator (partially addresses ITS#6652) --- servers/slapd/overlays/accesslog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/overlays/accesslog.c b/servers/slapd/overlays/accesslog.c index 542ad193f0..af35ac1332 100644 --- a/servers/slapd/overlays/accesslog.c +++ b/servers/slapd/overlays/accesslog.c @@ -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; } -- 2.39.5