Skip to content
Snippets Groups Projects
Commit ff4edfa0 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

added assertions to catch helper function misuse

parent 4046c422
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment