]> git.sur5r.net Git - openldap/commitdiff
check the length of the value with the right index (blind fix to ITS#5779)
authorPierangelo Masarati <ando@openldap.org>
Thu, 30 Oct 2008 14:03:47 +0000 (14:03 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 30 Oct 2008 14:03:47 +0000 (14:03 +0000)
servers/slapd/back-sql/schema-map.c

index 0d8d145d4713fe387af6582fd12fbdbe541b62e0..5d3678f29cd19f4228792223c751a083708ba0d8 100644 (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",