]> git.sur5r.net Git - openldap/commitdiff
fix rewrite iteration
authorPierangelo Masarati <ando@openldap.org>
Fri, 4 Jan 2002 17:51:46 +0000 (17:51 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 4 Jan 2002 17:51:46 +0000 (17:51 +0000)
servers/slapd/back-ldap/search.c

index 577c4330705996c31240e985217ba4abb6c41337..31c079f2efac519fc6008ba4cc5fa3154eed7e8c 100644 (file)
@@ -486,7 +486,7 @@ ldap_send_entry(
                } else if ( strcmp( attr->a_desc->ad_type->sat_syntax->ssyn_oid,
                                        SLAPD_DN_SYNTAX ) == 0 ) {
                        int i;
-                       for ( i = 0; ( bv = &attr->a_vals[ i ] ); i++ ) {
+                       for ( i = 0, bv = attr->a_vals; bv->bv_val; bv++, i++ ) {
                                char *newval;
                                
                                switch ( rewrite_session( li->rwinfo,