mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-02 21:19:53 -05:00
Fix tavl_delete
This commit is contained in:
parent
a727de0367
commit
53833c6ae6
1 changed files with 2 additions and 3 deletions
|
|
@ -251,10 +251,9 @@ tavl_delete( Avlnode **root, void* data, AVL_CMP fcmp )
|
|||
*root = q;
|
||||
}
|
||||
/* new parent of p points to p */
|
||||
if ( depth > 2 ) {
|
||||
r = pptr[depth-2];
|
||||
if ( depth > 1 ) {
|
||||
r = pptr[depth-1];
|
||||
r->avl_link[1] = p;
|
||||
pptr[depth-1] = p;
|
||||
} else {
|
||||
q->avl_link[0] = p;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue