From 6c8a8ec6a7bcc1f0e6fe515c0e5b7ae7b7e3413d Mon Sep 17 00:00:00 2001 From: Razvan Becheriu Date: Fri, 6 Dec 2019 14:10:27 +0200 Subject: [PATCH] [1040] minor changes --- src/lib/dhcpsrv/mysql_lease_mgr.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/dhcpsrv/mysql_lease_mgr.cc b/src/lib/dhcpsrv/mysql_lease_mgr.cc index 56d13d26a5..535fa87444 100644 --- a/src/lib/dhcpsrv/mysql_lease_mgr.cc +++ b/src/lib/dhcpsrv/mysql_lease_mgr.cc @@ -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(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_;