ITS#6845 set a_flags in attr_alloc()

This commit is contained in:
Howard Chu 2011-03-01 00:28:37 +00:00
parent 640ff9c84b
commit d89b0d7604
2 changed files with 2 additions and 3 deletions

View File

@ -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;

View File

@ -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;
}