mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-23 14:09:39 +08:00
ITS#9121 dynlist: cleanup unused code
This commit is contained in:
parent
9d53f7ccbc
commit
00610ee886
@ -832,35 +832,6 @@ checkdyn:
|
|||||||
return SLAP_CB_CONTINUE;
|
return SLAP_CB_CONTINUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* dynlist_sc_compare_entry() callback set by dynlist_compare() */
|
|
||||||
typedef struct dynlist_cc_t {
|
|
||||||
slap_callback dc_cb;
|
|
||||||
# define dc_ava dc_cb.sc_private /* attr:val to compare with */
|
|
||||||
int *dc_res;
|
|
||||||
} dynlist_cc_t;
|
|
||||||
|
|
||||||
static int
|
|
||||||
dynlist_sc_compare_entry( Operation *op, SlapReply *rs )
|
|
||||||
{
|
|
||||||
if ( rs->sr_type == REP_SEARCH && rs->sr_entry != NULL ) {
|
|
||||||
dynlist_cc_t *dc = (dynlist_cc_t *)op->o_callback;
|
|
||||||
AttributeAssertion *ava = dc->dc_ava;
|
|
||||||
Attribute *a = attrs_find( rs->sr_entry->e_attrs, ava->aa_desc );
|
|
||||||
|
|
||||||
if ( a != NULL ) {
|
|
||||||
while ( LDAP_SUCCESS != attr_valfind( a,
|
|
||||||
SLAP_MR_ATTRIBUTE_VALUE_NORMALIZED_MATCH |
|
|
||||||
SLAP_MR_ASSERTED_VALUE_NORMALIZED_MATCH,
|
|
||||||
&ava->aa_value, NULL, op->o_tmpmemctx )
|
|
||||||
&& (a = attrs_find( a->a_next, ava->aa_desc )) != NULL )
|
|
||||||
;
|
|
||||||
*dc->dc_res = a ? LDAP_COMPARE_TRUE : LDAP_COMPARE_FALSE;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
dynlist_check_scope( Operation *op, Entry *e, dynlist_info_t *dli )
|
dynlist_check_scope( Operation *op, Entry *e, dynlist_info_t *dli )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user