]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1040] minor changes
authorRazvan Becheriu <razvan@isc.org>
Fri, 6 Dec 2019 12:10:27 +0000 (14:10 +0200)
committerRazvan Becheriu <razvan@isc.org>
Fri, 10 Jan 2020 15:41:35 +0000 (17:41 +0200)
src/lib/dhcpsrv/mysql_lease_mgr.cc

index 56d13d26a512f51a02918254511e0c8380d60415..535fa8744420f52c5f8d27aceb6c4b4b8176c026 100644 (file)
@@ -1416,10 +1416,10 @@ public:
 
         // Create the lease and set the cltt (after converting from the
         // expire time retrieved from the database).
-        Lease6Ptr result(new Lease6(type, addr, duid_ptr, iaid_,
-                                    pref_lifetime_, valid_lifetime_,
-                                    subnet_id_, fqdn_fwd_, fqdn_rev_,
-                                    hostname, hwaddr, prefixlen_));
+        Lease6Ptr result(boost::make_shared<Lease6>(type, addr, duid_ptr, iaid_,
+                                                    pref_lifetime_, valid_lifetime_,
+                                                    subnet_id_, fqdn_fwd_, fqdn_rev_,
+                                                    hostname, hwaddr, prefixlen_));
         time_t cltt = 0;
         // Recover from overflow
         uint32_t valid_lft = valid_lifetime_;