]> git.sur5r.net Git - openldap/commitdiff
fixes ITS #1379; the replication test has been improved by adding modrdn entries
authorPierangelo Masarati <ando@openldap.org>
Tue, 9 Oct 2001 18:12:22 +0000 (18:12 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 9 Oct 2001 18:12:22 +0000 (18:12 +0000)
servers/slurpd/ldap_op.c

index f94722834045ee5bc42be3ae39ca1f2bdedb3cf2..d3a5a8ee54cd0ae04ec23691f98adad586f75e9a 100644 (file)
@@ -426,7 +426,7 @@ op_ldap_modrdn(
                return -1;
                }
 
-               newrdn = mi[ i ].mi_val;
+               newsup = mi[ i ].mi_val;
            state |= GOT_NEWSUP;
 
        } else {
@@ -463,7 +463,7 @@ op_ldap_modrdn(
 #endif /* LDAP_DEBUG */
 
     /* Do the modrdn */
-    rc = ldap_rename2_s( ri->ri_ldp, re->re_dn, mi->mi_val, newsup, drdnflag );
+    rc = ldap_rename2_s( ri->ri_ldp, re->re_dn, newrdn, newsup, drdnflag );
 
        ldap_get_option( ri->ri_ldp, LDAP_OPT_ERROR_NUMBER, &lderr);
     return( lderr );