mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#6845 set a_flags in attr_alloc()
This commit is contained in:
parent
640ff9c84b
commit
d89b0d7604
@ -500,9 +500,6 @@ slap_mods2entry(
|
||||
} else {
|
||||
attr->a_nvals = attr->a_vals;
|
||||
}
|
||||
/* slap_mods_check() gives us sorted results */
|
||||
if ( attr->a_desc->ad_type->sat_flags & SLAP_AT_SORTED_VAL )
|
||||
attr->a_flags |= SLAP_ATTR_SORTED_VALS;
|
||||
|
||||
*tail = attr;
|
||||
tail = &attr->a_next;
|
||||
|
@ -88,6 +88,8 @@ attr_alloc( AttributeDescription *ad )
|
||||
ldap_pvt_thread_mutex_unlock( &attr_mutex );
|
||||
|
||||
a->a_desc = ad;
|
||||
if ( ad && ( ad->ad_type->sat_flags & SLAP_AT_SORTED_VAL ))
|
||||
a->a_flags |= SLAP_ATTR_SORTED_VALS;
|
||||
|
||||
return a;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user