mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Don't avl_insert NULL kids
This commit is contained in:
parent
fe1bcdeb28
commit
f3e0a28f18
@ -450,10 +450,12 @@ bdb_cache_find_parent(
|
||||
bdb_cache_entryinfo_destroy( ein );
|
||||
ein = (EntryInfo *)avl_find( bdb->bi_cache.c_idtree,
|
||||
(caddr_t) &ei, bdb_id_cmp );
|
||||
bdb_cache_entryinfo_lock( ein );
|
||||
avl_insert( &ein->bei_kids, (caddr_t)ei2, bdb_rdn_cmp,
|
||||
avl_dup_error );
|
||||
bdb_cache_entryinfo_unlock( ein );
|
||||
if ( ei2 ) {
|
||||
bdb_cache_entryinfo_lock( ein );
|
||||
avl_insert( &ein->bei_kids, (caddr_t)ei2,
|
||||
bdb_rdn_cmp, avl_dup_error );
|
||||
bdb_cache_entryinfo_unlock( ein );
|
||||
}
|
||||
}
|
||||
|
||||
/* If this is the first time, save this node
|
||||
|
Loading…
Reference in New Issue
Block a user