From: Pierangelo Masarati Date: Fri, 4 Jan 2002 17:51:46 +0000 (+0000) Subject: fix rewrite iteration X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~296 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=10352caec1925d510ce5057726ebb7bdcdfa86c3;p=openldap fix rewrite iteration --- diff --git a/servers/slapd/back-ldap/search.c b/servers/slapd/back-ldap/search.c index 577c433070..31c079f2ef 100644 --- a/servers/slapd/back-ldap/search.c +++ b/servers/slapd/back-ldap/search.c @@ -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,