#ifdef BDB_HIER
struct berval odn, ondn;
- /* We only store rdns, and they go in the id2parent database. */
+ /* We only store rdns, and they go in the dn2id database. */
odn = e->e_name; ondn = e->e_nname;
ch_free( data.data );
}
- if ( rc == 0 ) {
-#ifdef BDB_HIER
- bdb_fix_dn(be, id, *e);
-#endif
- }
-
return rc;
}
}
} else {
if (e->e_private != NULL)
- free (e->e_private);
+ BEI(e)->bei_e = NULL;
e->e_private = NULL;
bdb_entry_return ( e );
}
bdb_idl_cache_entry_t idl_tmp;
bdb_idl_cache_entry_t *ee;
+ DBT2bv( key, &idl_tmp.kstr );
+
ee = (bdb_idl_cache_entry_t *) ch_malloc(
sizeof( bdb_idl_cache_entry_t ) );
ee->db = db;