From 10352caec1925d510ce5057726ebb7bdcdfa86c3 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 4 Jan 2002 17:51:46 +0000 Subject: [PATCH] fix rewrite iteration --- servers/slapd/back-ldap/search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.39.5