]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#465,!265] Compilation fixes after rebase.
authorTomek Mrugalski <tomasz@isc.org>
Tue, 16 Apr 2019 17:29:20 +0000 (19:29 +0200)
committerTomek Mrugalski <tomek@isc.org>
Fri, 19 Apr 2019 10:39:47 +0000 (06:39 -0400)
src/lib/dhcpsrv/shared_network.cc

index 0e2b8e0961f4c1663b0d9ee0022d5693f1a4220b..d691e73af455193d2a14227121bdd41f0a32d5b6 100644 (file)
@@ -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);