mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
ITS#9282 fix crash in nonpresent_callback
In a standard Refresh present phase, the provider sends no cookie since it is only listing the entries that existed as of the time in the cookie the consumer sent. In this case the consumer only needs to check entryCSNs against its last sent cookie.
This commit is contained in:
parent
9535e757df
commit
8699e5f32e
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user