mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-03 13:40:37 -05:00
Fix modtail initialization in loop
This commit is contained in:
parent
e49c13b874
commit
c5006f4b87
1 changed files with 2 additions and 1 deletions
|
|
@ -1483,7 +1483,7 @@ syncrepl_del_nonpresent(
|
|||
Modifications *mlnext;
|
||||
Modifications *mod;
|
||||
Modifications *modlist = NULL;
|
||||
Modifications **modtail = &modlist;
|
||||
Modifications **modtail;
|
||||
AttributeName an[2];
|
||||
|
||||
struct berval pdn = BER_BVNULL;
|
||||
|
|
@ -1543,6 +1543,7 @@ syncrepl_del_nonpresent(
|
|||
rc = op->o_bd->be_delete( op, &rs_delete );
|
||||
|
||||
if ( rs_delete.sr_err == LDAP_NOT_ALLOWED_ON_NONLEAF ) {
|
||||
modtail = &modlist;
|
||||
mod = (Modifications *) ch_calloc( 1, sizeof( Modifications ));
|
||||
mod->sml_op = LDAP_MOD_REPLACE;
|
||||
mod->sml_desc = slap_schema.si_ad_objectClass;
|
||||
|
|
|
|||
Loading…
Reference in a new issue