From: Howard Chu Date: Thu, 14 Sep 2006 22:38:45 +0000 (+0000) Subject: Additional fix for ITS#4673 X-Git-Tag: OPENLDAP_REL_ENG_2_3_MP~130 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f1457a8ce83a76137f065438490b428879cbacb8;p=openldap Additional fix for ITS#4673 --- diff --git a/servers/slapd/overlays/translucent.c b/servers/slapd/overlays/translucent.c index a6ffc7d28a..5c8fd34788 100644 --- a/servers/slapd/overlays/translucent.c +++ b/servers/slapd/overlays/translucent.c @@ -364,11 +364,10 @@ static int translucent_modify(Operation *op, SlapReply *rs) { m->sml_desc->ad_cname.bv_val, 0, 0); for(mm = op->orm_modlist; mm->sml_next != m; mm = mm->sml_next); mm->sml_next = m->sml_next; - mm = m; - m = m->sml_next; - mm->sml_next = NULL; /* hack */ - slap_mods_free(mm, 1); - if(m) continue; + m->sml_next = NULL; + slap_mods_free(m, 1); + m = mm; + continue; } m->sml_op = LDAP_MOD_ADD; }