From: Howard Chu Date: Wed, 24 Nov 2004 06:26:25 +0000 (+0000) Subject: Import ITS#3403 fix (syncrepl memory corruption) from HEAD X-Git-Tag: OPENLDAP_REL_ENG_2_2_19~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e1080c86943a49135566b19e094f084d85b31671;p=openldap Import ITS#3403 fix (syncrepl memory corruption) from HEAD --- diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 75e6f0315d..24e31fab18 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -1423,7 +1423,7 @@ syncrepl_del_nonpresent( Modifications *mlnext; Modifications *mod; Modifications *modlist = NULL; - Modifications **modtail = &modlist; + Modifications **modtail; Attribute *attr; struct berval pdn = BER_BVNULL; @@ -1478,6 +1478,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;