check the length of the value with the right index (blind fix to ITS#5779)

This commit is contained in:
Pierangelo Masarati 2008-10-30 14:03:47 +00:00
parent df5196b745
commit 00accc69c4

View file

@ -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",