mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
handle attr delete appropriately (pass test004)
This commit is contained in:
parent
677f13a846
commit
1b4401ff53
@ -3127,6 +3127,9 @@ Modifications *slapi_x_ldapmods2modifications (LDAPMod **mods)
|
|||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( i == 0 ) {
|
||||||
|
mod->sml_bvalues = NULL;
|
||||||
|
} else {
|
||||||
mod->sml_bvalues = (BerVarray) ch_malloc( (i + 1) * sizeof(struct berval) );
|
mod->sml_bvalues = (BerVarray) ch_malloc( (i + 1) * sizeof(struct berval) );
|
||||||
|
|
||||||
/* NB: This implicitly trusts a plugin to return valid modifications. */
|
/* NB: This implicitly trusts a plugin to return valid modifications. */
|
||||||
@ -3142,6 +3145,7 @@ Modifications *slapi_x_ldapmods2modifications (LDAPMod **mods)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
mod->sml_bvalues[i].bv_val = NULL;
|
mod->sml_bvalues[i].bv_val = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
*modtail = mod;
|
*modtail = mod;
|
||||||
modtail = &mod->sml_next;
|
modtail = &mod->sml_next;
|
||||||
|
Loading…
Reference in New Issue
Block a user