From: Pierangelo Masarati Date: Thu, 30 Oct 2008 14:03:47 +0000 (+0000) Subject: check the length of the value with the right index (blind fix to ITS#5779) X-Git-Tag: ACLCHECK_0~1179 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=00accc69c4f2ff1d163eefad83cac71f4c9fdaa8;p=openldap check the length of the value with the right index (blind fix to ITS#5779) --- diff --git a/servers/slapd/back-sql/schema-map.c b/servers/slapd/back-sql/schema-map.c index 0d8d145d47..5d3678f29c 100644 --- a/servers/slapd/back-sql/schema-map.c +++ b/servers/slapd/back-sql/schema-map.c @@ -570,7 +570,7 @@ backsql_load_schema_map( backsql_info *bi, SQLHDBC dbh ) int i; for ( i = 0; required[ i ].name != NULL; i++ ) { - if ( oc_row.value_len[ i ] <= 0 ) { + if ( oc_row.value_len[ required[ i ].idx ] <= 0 ) { Debug( LDAP_DEBUG_ANY, "backsql_load_schema_map(): " "required column #%d \"%s\" is empty\n",