for ( i = 0, lsc = lc->conns; lsc[ 0 ] != NULL; ++i, ++lsc ) {
char *mdn = NULL;
char *mapped_attr = ava->aa_desc->ad_cname.bv_val;
- char *mapped_value = ava->aa_value->bv_val;
+ char *mapped_value = ava->aa_value.bv_val;
if ( lsc[ 0 ]->candidate != META_CANDIDATE ) {
continue;
if ( ava->aa_desc->ad_type->sat_oid
== slap_schema.si_ad_objectClass->ad_type->sat_oid ) {
mapped_value = ldap_back_map( &li->targets[ i ]->oc_map,
- ava->aa_value->bv_val, 0 );
+ ava->aa_value.bv_val, 0 );
if ( mapped_value == NULL ) {
lsc[ 0 ]->candidate = META_NOT_CANDIDATE;
if ( mapped_attr != ava->aa_desc->ad_cname.bv_val ) {
free( mapped_attr );
}
- if ( mapped_value != ava->aa_value->bv_val ) {
+ if ( mapped_value != ava->aa_value.bv_val ) {
free( mapped_value );
}
}
rc = access_allowed( be, conn, op, e, ava->aa_desc,
- ava->aa_value, ACL_COMPARE );
+ &ava->aa_value, ACL_COMPARE );
if ( !rc ) {
send_ldap_result( conn, op, LDAP_INSUFFICIENT_ACCESS,
NULL, NULL, NULL, NULL );
a = attrs_find( a->a_next, ava->aa_desc )) {
rc = LDAP_COMPARE_FALSE;
- if ( value_find( ava->aa_desc, a->a_vals, ava->aa_value ) == 0 ) {
+ if ( value_find( ava->aa_desc, a->a_vals, &ava->aa_value ) == 0 ) {
rc = LDAP_COMPARE_TRUE;
break;
}