mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
trim unnecessary test
This commit is contained in:
parent
3768fbbd30
commit
1ec443df53
@ -224,16 +224,8 @@ memberof_saveMember_cb( Operation *op, SlapReply *rs )
|
||||
a = attr_find( rs->sr_entry->e_attrs, mc->ad );
|
||||
if ( a != NULL ) {
|
||||
ber_bvarray_dup_x( &mc->vals, a->a_nvals, op->o_tmpmemctx );
|
||||
}
|
||||
|
||||
if ( a && attr_find( a->a_next, mc->ad ) != NULL ) {
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
"%s: memberof_saveMember_cb(\"%s\"): "
|
||||
"more than one occurrence of \"%s\" "
|
||||
"attribute.\n",
|
||||
op->o_log_prefix,
|
||||
rs->sr_entry->e_name.bv_val,
|
||||
mc->ad->ad_cname.bv_val );
|
||||
assert( attr_find( a->a_next, mc->ad ) == NULL );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user