mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-01 19:39:29 -05:00
Fix DN freeing in BDB_HIER case. (BDB_HIER is still broken, seems to have
a bad interaction with the entry cache.)
This commit is contained in:
parent
203c410243
commit
a352bcaa16
1 changed files with 2 additions and 1 deletions
|
|
@ -193,6 +193,7 @@ int bdb_entry_return(
|
|||
attrs_free( e->e_attrs );
|
||||
}
|
||||
|
||||
#ifndef BDB_HIER
|
||||
/* See if the DNs were changed by modrdn */
|
||||
if( e->e_nname.bv_val < e->e_bv.bv_val || e->e_nname.bv_val >
|
||||
e->e_bv.bv_val + e->e_bv.bv_len ) {
|
||||
|
|
@ -201,7 +202,7 @@ int bdb_entry_return(
|
|||
e->e_name.bv_val = NULL;
|
||||
e->e_nname.bv_val = NULL;
|
||||
}
|
||||
#ifdef BDB_HIER
|
||||
#else
|
||||
/* We had to construct the dn and ndn as well, in a single block */
|
||||
if( e->e_name.bv_val ) {
|
||||
free( e->e_name.bv_val );
|
||||
|
|
|
|||
Loading…
Reference in a new issue