From 92d439a0ddd5b36ed42b2430975850f34851c5c2 Mon Sep 17 00:00:00 2001 From: HIRABAYASHI Satoshi Date: Wed, 28 Mar 2012 02:48:03 -0700 Subject: [PATCH] ITS#7218 fix sessionlog usability check --- servers/slapd/overlays/syncprov.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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; } } -- 2.39.5