From: Howard Chu Date: Thu, 20 Mar 2008 00:10:31 +0000 (+0000) Subject: ITS#5432 fix compare_csns loop conditions X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~71 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d3e8df3940c5dae837aed68f2a141cfe934fbc41;p=openldap ITS#5432 fix compare_csns loop conditions --- diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 44c2782933..d575e245bc 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -672,8 +672,8 @@ compare_csns( struct sync_cookie *sc1, struct sync_cookie *sc2, int *which ) return -1; } - for (i=0; !BER_BVISNULL( &sc1->ctxcsn[i] ); i++) { - for (j=0; !BER_BVISNULL( &sc2->ctxcsn[j] ); j++) { + for (i=0; inumcsns; i++) { + for (j=0; inumcsns; j++) { if ( sc1->sids[i] != sc2->sids[j] ) continue; value_match( &match, slap_schema.si_ad_entryCSN,