From: Kurt Zeilenga Date: Tue, 25 Dec 2001 03:03:03 +0000 (+0000) Subject: Adjust e_name.bv_len on modrdn X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~524 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ae0a17fa4e3d635802b830c2367e4c0c22cf7afe;p=openldap Adjust e_name.bv_len on modrdn --- diff --git a/servers/slapd/back-bdb/modrdn.c b/servers/slapd/back-bdb/modrdn.c index 0420f84494..4ecca38f51 100644 --- a/servers/slapd/back-bdb/modrdn.c +++ b/servers/slapd/back-bdb/modrdn.c @@ -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 ); diff --git a/servers/slapd/back-ldbm/modrdn.c b/servers/slapd/back-ldbm/modrdn.c index 15aa68f64b..1aa8cd4011 100644 --- a/servers/slapd/back-ldbm/modrdn.c +++ b/servers/slapd/back-ldbm/modrdn.c @@ -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; diff --git a/servers/slapd/back-monitor/init.c b/servers/slapd/back-monitor/init.c index 05a2a0ad31..1092e61c68 100644 --- a/servers/slapd/back-monitor/init.c +++ b/servers/slapd/back-monitor/init.c @@ -37,6 +37,7 @@ #include "portable.h" #include +#include #include "slap.h" #include "back-monitor.h"