]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2750] Adjust a few more pointers to make the exchange complete
authorMukund Sivaraman <muks@isc.org>
Mon, 26 Aug 2013 10:33:00 +0000 (16:03 +0530)
committerMukund Sivaraman <muks@isc.org>
Mon, 26 Aug 2013 10:33:00 +0000 (16:03 +0530)
src/lib/datasrc/memory/domaintree.h

index b2f402dfb1eadf5f7da4fbea4027069303949e44..5901d91baf27292e651d1e03e90464e30c16d475 100644 (file)
@@ -678,6 +678,20 @@ private:
             } else {
                 *subtree_root = other;
             }
+        } else {
+            if (other->getParent()->getLeft() == this) {
+                other->getParent()->left_ = other;
+            } else {
+                other->getParent()->right_ = other;
+            }
+        }
+
+        if (other->getRight()) {
+            other->getRight()->parent_ = other;
+        }
+
+        if (other->getLeft()) {
+            other->getLeft()->parent_ = other;
         }
     }