ITS#7218 fix sessionlog usability check

This commit is contained in:
HIRABAYASHI Satoshi 2012-03-28 02:48:03 -07:00 committed by Howard Chu
parent be9585d0ed
commit 92d439a0dd

View File

@ -2643,10 +2643,11 @@ no_change: if ( !(op->o_sync_mode & SLAP_SYNC_PERSIST) ) {
do_play = 1; do_play = 1;
break; break;
} }
/* SID present and new enough */ /* SID present */
if ( minsid == sl->sl_sids[i] if ( minsid == sl->sl_sids[i] ) {
&& ber_bvcmp( &mincsn, &sl->sl_mincsn[i] ) >= 0 ) { /* new enough? */
do_play = 1; if ( ber_bvcmp( &mincsn, &sl->sl_mincsn[i] ) >= 0 )
do_play = 1;
break; break;
} }
} }