]> git.sur5r.net Git - openldap/commitdiff
Adjust e_name.bv_len on modrdn
authorKurt Zeilenga <kurt@openldap.org>
Tue, 25 Dec 2001 03:03:03 +0000 (03:03 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 25 Dec 2001 03:03:03 +0000 (03:03 +0000)
servers/slapd/back-bdb/modrdn.c
servers/slapd/back-ldbm/modrdn.c
servers/slapd/back-monitor/init.c

index 0420f844943a2b1c01fd4d49996d0ec5a3ec40fa..4ecca38f51c06951366926eb16cc336a20e08267 100644 (file)
@@ -567,7 +567,9 @@ retry:      /* transaction retry */
         * they can be individually freed later.
         */
        e->e_dn = new_dn;
+       e->e_name.bv_len = strlen( new_dn );
        e->e_ndn = new_ndn;
+       e->e_nname.bv_len = strlen( new_ndn );
 
        /* add new one */
        rc = bdb_dn2id_add( be, ltid, np_ndn, e );
index 15aa68f64b1ea8af810ec95ae1a02ef9b9739522..1aa8cd40110e496ed6b052d8678e560a0e1484c3 100644 (file)
@@ -736,7 +736,9 @@ ldbm_back_modrdn(
        free( e->e_dn );
        free( e->e_ndn );
        e->e_dn = new_dn;
+       e->e_name.bv_len = strlen( new_dn );
        e->e_ndn = new_ndn;
+       e->e_nname.bv_len = strlen( new_ndn );
        new_dn = NULL;
        new_ndn = NULL;
 
index 05a2a0ad317d0e118ec0102a057f5f74c966fac3..1092e61c68877c7c6773c4a81451384d8fac63ee 100644 (file)
@@ -37,6 +37,7 @@
 #include "portable.h"
 
 #include <stdio.h>
+#include <ac/string.h>
 
 #include "slap.h"
 #include "back-monitor.h"