From: HIRABAYASHI Satoshi Date: Wed, 28 Mar 2012 09:48:03 +0000 (-0700) Subject: ITS#7218 fix sessionlog usability check X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=92d439a0ddd5b36ed42b2430975850f34851c5c2;p=openldap ITS#7218 fix sessionlog usability check --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index e44c239a45..2cdd7ac5bc 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -2643,10 +2643,11 @@ no_change: if ( !(op->o_sync_mode & SLAP_SYNC_PERSIST) ) { do_play = 1; break; } - /* SID present and new enough */ - if ( minsid == sl->sl_sids[i] - && ber_bvcmp( &mincsn, &sl->sl_mincsn[i] ) >= 0 ) { - do_play = 1; + /* SID present */ + if ( minsid == sl->sl_sids[i] ) { + /* new enough? */ + if ( ber_bvcmp( &mincsn, &sl->sl_mincsn[i] ) >= 0 ) + do_play = 1; break; } }