Skip to content
Snippets Groups Projects
Commit 6d0dadc0 authored by Howard Chu's avatar Howard Chu
Browse files

Fix modify_delete_values. This stuff should be completely rewritten

to take full advantage of SLAP_NVALUES.
parent 284ef10e
No related branches found
No related tags found
No related merge requests found
......@@ -615,6 +615,12 @@ modify_delete_values(
if ( j != k ) {
a->a_vals[ j ] = a->a_vals[ k ];
#ifdef SLAP_NVALUES
if (a->a_nvals) {
free( a->a_nvals[j].bv_val );
a->a_nvals[ j ] = a->a_nvals[ k ];
}
#endif
}
if ( a->a_vals[ k ].bv_val == NULL ) {
......@@ -622,6 +628,9 @@ modify_delete_values(
}
}
a->a_vals[ j ].bv_val = NULL;
#ifdef SLAP_NVALUES
a->a_nvals[ j ].bv_val = NULL;
#endif
assert( i == k - j );
......
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