Skip to content
Snippets Groups Projects
Commit ae0a17fa authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Adjust e_name.bv_len on modrdn

parent 3336619c
Branches
Tags
No related merge requests found
......@@ -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 );
......
......@@ -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;
......
......@@ -37,6 +37,7 @@
#include "portable.h"
#include <stdio.h>
#include <ac/string.h>
#include "slap.h"
#include "back-monitor.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment