From: Howard Chu Date: Thu, 22 Sep 2005 01:16:28 +0000 (+0000) Subject: tavl_delete: copy balance factor X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~399 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0951e71df4711fababe33a815a64b27e313a1deb;p=openldap tavl_delete: copy balance factor --- diff --git a/libraries/liblutil/tavl.c b/libraries/liblutil/tavl.c index 988b7b750b..d2a4ccf428 100644 --- a/libraries/liblutil/tavl.c +++ b/libraries/liblutil/tavl.c @@ -239,6 +239,8 @@ tavl_delete( Avlnode **root, void* data, AVL_CMP fcmp ) p->avl_bits[1] = q->avl_bits[1]; q->avl_bits[0] = q->avl_bits[1] = AVL_CHILD; + q->avl_bf = p->avl_bf; + /* fix stack positions: old parent of p points to q */ pptr[side] = q; if ( side ) {