From 00accc69c4f2ff1d163eefad83cac71f4c9fdaa8 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 30 Oct 2008 14:03:47 +0000 Subject: [PATCH] check the length of the value with the right index (blind fix to ITS#5779) --- servers/slapd/back-sql/schema-map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- 2.39.5