From: Pierangelo Masarati Date: Sat, 8 Jan 2005 09:59:53 +0000 (+0000) Subject: make sure the attribute exists X-Git-Tag: OPENLDAP_REL_ENG_2_3_BP~451 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=83fc428a4427a51ea5582eacf3a827f02fb22991;p=openldap make sure the attribute exists --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 2b242ef4b9..9b89f96553 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -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,