From: Ondřej Kuzník Date: Wed, 17 Feb 2021 11:53:31 +0000 (+0000) Subject: ITS#9282 Check all csns X-Git-Tag: OPENLDAP_REL_ENG_2_4_58~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2a6425c16df397a7a07e44f8c38ca66bd2a2162;p=thirdparty%2Fopenldap.git ITS#9282 Check all csns --- diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 8198e8e54a..3d342f4d97 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -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;