]> git.sur5r.net Git - openldap/commitdiff
Fix prev commit - cannot shortcut initial sync
authorHoward Chu <hyc@openldap.org>
Mon, 5 Feb 2007 23:54:07 +0000 (23:54 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 5 Feb 2007 23:54:07 +0000 (23:54 +0000)
servers/slapd/overlays/syncprov.c

index 8a824513c1612f79711bd2c91fc401cb83787d16..243fe6394a111a4600f84110bb6c3522165c1872 100644 (file)
@@ -1928,7 +1928,7 @@ syncprov_search_response( Operation *op, SlapReply *rs )
                        sid = slap_parse_csn_sid( &a->a_nvals[0] );
 
                        /* Don't send changed entries back to the originator */
-                       if ( sid == srs->sr_state.sid ) {
+                       if ( sid == srs->sr_state.sid && srs->sr_state.numcsns ) {
                                Debug( LDAP_DEBUG_SYNC,
                                        "Entry %s changed by peer, ignored\n",
                                        rs->sr_entry->e_name.bv_val, 0, 0 );