From c5006f4b8733b780741eb12d2dfdca49451e6388 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 22 Nov 2004 02:11:15 +0000 Subject: [PATCH] Fix modtail initialization in loop --- servers/slapd/syncrepl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index cf11fa07e0..5d2fdcf40d 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -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; -- 2.39.5