fix crash related to ITS#4839; other issues seem to presist

This commit is contained in:
Pierangelo Masarati 2007-02-10 10:55:05 +00:00
parent ba96ad0b90
commit a904cc015c

View File

@ -2539,7 +2539,7 @@ syncprov_db_open(
if ( a ) {
int i;
ber_bvarray_dup_x( &si->si_ctxcsn, a->a_vals, NULL );
for ( i=0; !BER_BVISEMPTY( &a->a_vals[i] ); i++ );
for ( i = 0; !BER_BVISNULL( &a->a_vals[i] ); i++ );
si->si_numcsns = i;
si->si_sids = slap_parse_csn_sids( si->si_ctxcsn, i );
}