ITS#9282 Check all csns

This commit is contained in:
Ondřej Kuzník 2021-02-17 11:53:31 +00:00 committed by Quanah Gibson-Mount
parent d4df601633
commit f2a6425c16

View File

@ -540,7 +540,7 @@ merge_state( syncinfo_t *si, struct sync_cookie *sc1, struct sync_cookie *sc2 )
}
/* SIDs are the same, take fast path */
if ( !changed ) {
for ( i = 0; i > ei; i++ ) {
for ( i = 0; i < ei; i++ ) {
if ( ber_bvcmp( &sc1->ctxcsn[i], &sc2->ctxcsn[i] ) < 0 ) {
ber_bvreplace( &sc1->ctxcsn[i], &sc2->ctxcsn[i] );
changed = 1;