mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-06 06:59:54 -05:00
make sure the attribute exists
This commit is contained in:
parent
9d5d9cc2ec
commit
83fc428a44
1 changed files with 2 additions and 1 deletions
|
|
@ -1611,8 +1611,9 @@ syncprov_search_response( Operation *op, SlapReply *rs )
|
|||
if ( srs->sr_state.ctxcsn ) {
|
||||
Attribute *a = attr_find( rs->sr_entry->e_attrs,
|
||||
slap_schema.si_ad_entryCSN );
|
||||
|
||||
/* Don't send the ctx entry twice */
|
||||
if ( bvmatch( &a->a_nvals[0], srs->sr_state.ctxcsn ))
|
||||
if ( a && bvmatch( &a->a_nvals[0], srs->sr_state.ctxcsn ) )
|
||||
return LDAP_SUCCESS;
|
||||
}
|
||||
rs->sr_ctrls = op->o_tmpalloc( sizeof(LDAPControl *)*2,
|
||||
|
|
|
|||
Loading…
Reference in a new issue