From: Howard Chu Date: Mon, 5 Feb 2007 23:54:07 +0000 (+0000) Subject: Fix prev commit - cannot shortcut initial sync X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~69 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=21e4eb3dcc5b98219b0984bf867e78eb59dc884f;p=openldap Fix prev commit - cannot shortcut initial sync --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 8a824513c1..243fe6394a 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -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 );