mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-04 14:10:39 -05:00
More for prev commit
This commit is contained in:
parent
755e645da3
commit
6345812f49
2 changed files with 6 additions and 2 deletions
|
|
@ -819,8 +819,10 @@ ldap_build_entry(
|
|||
if ( attr->a_desc->ad_type->sat_flags & SLAP_AT_SORTED_VAL ) {
|
||||
while ( attr->a_numvals > 1 ) {
|
||||
int rc = slap_sort_vals( (Modifications *)attr, &text, &i, op->o_tmpmemctx );
|
||||
if ( rc != LDAP_TYPE_OR_VALUE_EXISTS )
|
||||
if ( rc != LDAP_TYPE_OR_VALUE_EXISTS ) {
|
||||
attr->a_flags |= SLAP_ATTR_SORTED_VALS;
|
||||
break;
|
||||
}
|
||||
|
||||
/* Strip duplicate values */
|
||||
if ( attr->a_nvals != attr->a_vals )
|
||||
|
|
|
|||
|
|
@ -2168,8 +2168,10 @@ next_attr:;
|
|||
while ( attr->a_numvals > 1 ) {
|
||||
int i;
|
||||
int rc = slap_sort_vals( (Modifications *)attr, &text, &i, op->o_tmpmemctx );
|
||||
if ( rc != LDAP_TYPE_OR_VALUE_EXISTS )
|
||||
if ( rc != LDAP_TYPE_OR_VALUE_EXISTS ) {
|
||||
attr->a_flags |= SLAP_ATTR_SORTED_VALS;
|
||||
break;
|
||||
}
|
||||
|
||||
/* Strip duplicate values */
|
||||
if ( attr->a_nvals != attr->a_vals )
|
||||
|
|
|
|||
Loading…
Reference in a new issue