From 2c68ed1289e424d03c475f81dad6c8682c22fa1e Mon Sep 17 00:00:00 2001 From: Tomek Mrugalski Date: Tue, 16 Apr 2019 19:29:20 +0200 Subject: [PATCH] [#465,!265] Compilation fixes after rebase. --- src/lib/dhcpsrv/shared_network.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/dhcpsrv/shared_network.cc b/src/lib/dhcpsrv/shared_network.cc index 0e2b8e0961..d691e73af4 100644 --- a/src/lib/dhcpsrv/shared_network.cc +++ b/src/lib/dhcpsrv/shared_network.cc @@ -316,10 +316,10 @@ SharedNetwork4::replace(const Subnet4Ptr& subnet) { bool ret = Impl::replace(subnets_, subnet); if (ret) { // Associate the subnet with this network. - setSharedNetwork(subnet); + subnet->setSharedNetwork(shared_from_this()); subnet->setSharedNetworkName(name_); // Deassociate the previous subnet. - clearSharedNetwork(old); + old->setSharedNetwork(NetworkPtr()); old->setSharedNetworkName(""); } return (ret); @@ -401,10 +401,10 @@ SharedNetwork6::replace(const Subnet6Ptr& subnet) { bool ret = Impl::replace(subnets_, subnet); if (ret) { // Associate the subnet with this network. - setSharedNetwork(subnet); + subnet->setSharedNetwork(shared_from_this()); subnet->setSharedNetworkName(name_); // Deassociate the previous subnet. - clearSharedNetwork(old); + old->setSharedNetwork(NetworkPtr()); old->setSharedNetworkName(""); } return (ret); -- 2.47.2