mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 17:19:43 -05:00
add a consistency check
This commit is contained in:
parent
17dbf7a49f
commit
22aed7ddf9
1 changed files with 7 additions and 0 deletions
|
|
@ -192,6 +192,13 @@ attr_merge(
|
|||
#ifdef LDAP_COMP_MATCH
|
||||
(*a)->a_comp_data = NULL;
|
||||
#endif
|
||||
} else {
|
||||
/*
|
||||
* FIXME: if the attribute already exists, the presence
|
||||
* of nvals and the value of (*a)->a_nvals must be consistent
|
||||
*/
|
||||
assert( ( nvals == NULL && (*a)->a_nvals == (*a)->a_vals )
|
||||
|| ( nvals != NULL && (*a)->a_nvals != (*a)->a_vals ) );
|
||||
}
|
||||
|
||||
rc = value_add( &(*a)->a_vals, vals );
|
||||
|
|
|
|||
Loading…
Reference in a new issue