diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 437a016db8..80fa03f8af 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -5480,6 +5480,9 @@ nonpresent_callback( if ( present_uuid == NULL ) { int covered = 1; /* covered by our new contextCSN? */ + if ( !syncCookie ) + syncCookie = &si->si_syncCookie; + /* TODO: This can go once we can build a filter that takes care of * the check for us */ a = attr_find( rs->sr_entry->e_attrs, slap_schema.si_ad_entryCSN );