]> git.sur5r.net Git - openldap/commitdiff
fix crash related to ITS#4839; other issues seem to presist
authorPierangelo Masarati <ando@openldap.org>
Sat, 10 Feb 2007 10:55:05 +0000 (10:55 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 10 Feb 2007 10:55:05 +0000 (10:55 +0000)
servers/slapd/overlays/syncprov.c

index ed68e77dc7aa3cc5f9bed9220619b828a9881e30..8aaa3f746b17f86ffdee55891957955a9265df9a 100644 (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 );
                }