]> git.sur5r.net Git - openldap/commitdiff
__should__ fix ITS#4296
authorPierangelo Masarati <ando@openldap.org>
Tue, 3 Jan 2006 18:07:01 +0000 (18:07 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 3 Jan 2006 18:07:01 +0000 (18:07 +0000)
servers/slapd/syncrepl.c

index 1cc4b8483299b35121cb76616defbb6a9964a612..83161d17723f27de6c88b9ca003f933b87d00f97 100644 (file)
@@ -1844,7 +1844,12 @@ retry_add:;
                        }
                        op->orr_deleteoldrdn = 0;
                        op->orr_modlist = NULL;
+                       if ( slap_modrdn2mods( op, &rs_modify )) {
+                               ret = 1;
+                               goto done;
+                       }
                        rc = be->be_modrdn( op, &rs_modify );
+                       slap_mods_free( op->orr_modlist, 1 );
                        Debug( LDAP_DEBUG_SYNC,
                                        "syncrepl_entry: %s (%d)\n", 
                                        "be_modrdn", rc, 0 );