]> git.sur5r.net Git - openldap/commitdiff
Additional fix for ITS#4673
authorHoward Chu <hyc@openldap.org>
Thu, 14 Sep 2006 22:38:45 +0000 (22:38 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 14 Sep 2006 22:38:45 +0000 (22:38 +0000)
servers/slapd/overlays/translucent.c

index a6ffc7d28ac58bcccf3c97d5f8cca517c0f8972a..5c8fd34788be08313346d29b44147781e75f6181 100644 (file)
@@ -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;
                }