2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 22:15:23 +00:00

[#2548] set valid_lft_ and preferred_lft_ to 0 instead of setting cltt_

This commit is contained in:
Razvan Becheriu
2022-10-11 19:07:48 +03:00
parent 6dc43932e1
commit 68e654a8e4
6 changed files with 25 additions and 14 deletions

View File

@@ -3436,9 +3436,10 @@ Dhcpv4Srv::processRelease(Pkt4Ptr& release, AllocEngine::ClientContext4Ptr& cont
// Delete lease only if affinity is disabled.
if (expiration_cfg->getFlushReclaimedTimerWaitTime() &&
expiration_cfg->getHoldReclaimedTime()) {
expiration_cfg->getHoldReclaimedTime() &&
lease->valid_lft_ != Lease::INFINITY_LFT) {
// Expire the lease.
lease->cltt_ -= lease->valid_lft_ + 1;
lease->valid_lft_ = 0;
LeaseMgrFactory::instance().updateLease4(lease);
expired = true;
success = true;