mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
added assertions to catch helper function misuse
This commit is contained in:
parent
4046c4226e
commit
ff4edfa054
@ -401,6 +401,9 @@ slap_modrdn2mods(
|
||||
Modifications *mod = NULL;
|
||||
int a_cnt, d_cnt;
|
||||
|
||||
assert( new_rdn != NULL );
|
||||
assert( !deleteoldrdn || old_rdn != NULL );
|
||||
|
||||
/* Add new attribute values to the entry */
|
||||
for ( a_cnt = 0; new_rdn[ 0 ][ a_cnt ]; a_cnt++ ) {
|
||||
AttributeDescription *desc = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user