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

fix ITS#3346

parent e8f30c8d
No related branches found
No related tags found
No related merge requests found
......@@ -219,9 +219,13 @@ modify_delete_values(
return LDAP_NO_SUCH_ATTRIBUTE;
}
for ( i = 0; mod->sm_values[i].bv_val != NULL; i++ ) {
for ( i = 0; !BER_BVISNULL( &mod->sm_values[i] ); i++ ) {
int found = 0;
for ( j = 0; a->a_vals[j].bv_val != NULL; j++ ) {
for ( j = 0; !BER_BVISNULL( &a->a_vals[j] ); j++ ) {
/* skip already deleted values */
if ( a->a_vals[j].bv_val == &dummy ) {
continue;
}
if( mod->sm_nvalues ) {
assert( a->a_nvals );
......
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