added assertions to catch helper function misuse

This commit is contained in:
Pierangelo Masarati 2002-08-23 08:46:45 +00:00
parent 4046c4226e
commit ff4edfa054

View File

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