]> git.sur5r.net Git - openldap/commitdiff
ITS#7218 fix sessionlog usability check
authorHIRABAYASHI Satoshi <s_hira@nifty.com>
Wed, 28 Mar 2012 09:48:03 +0000 (02:48 -0700)
committerHoward Chu <hyc@openldap.org>
Wed, 28 Mar 2012 09:48:03 +0000 (02:48 -0700)
servers/slapd/overlays/syncprov.c

index e44c239a4501d57715dffdf6c9994b1ecd24a244..2cdd7ac5bc3e6406198effe203da8e5f25ff89e0 100644 (file)
@@ -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;
                                        }
                                }