]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#225] Fixed queueNCRCommon call to calculateDdnsTtl()
authorThomas Markwalder <tmark@isc.org>
Fri, 24 Mar 2023 13:16:17 +0000 (09:16 -0400)
committerThomas Markwalder <tmark@isc.org>
Fri, 24 Mar 2023 16:50:00 +0000 (12:50 -0400)
modified:   src/lib/dhcpsrv/ncr_generator.cc

src/lib/dhcpsrv/ncr_generator.cc

index 34905e219b3177be7bc173c8ad18b8aa2907d505..42ead6c2eeed7144e406d9a7317da1a7834e32e6 100644 (file)
@@ -65,7 +65,7 @@ void queueNCRCommon(const NameChangeType& chg_type, const LeasePtrType& lease,
         D2Dhcid dhcid = D2Dhcid(identifier, hostname_wire);
 
         // Calculate the TTL based on lease life time.
-        uint32_t ttl = calculateDdnsTtl(lease->valid_lft_);
+        uint32_t ttl = calculateDdnsTtl(lease->valid_lft_, ddns_ttl_percent);
 
         // Create name change request.
         NameChangeRequestPtr ncr