int ConfigurationManager::expireLease4Client(Client& client) { Lease l = client.lease(); AssertReturn(l != Lease::NullLease, VERR_INTERNAL_ERROR); if (l.isInBindingPhase()) { MapLease2Ip4AddressIterator it = m->m_allocations.find(l); AssertReturn(it != m->m_allocations.end(), VERR_NOT_FOUND); /* * XXX: perhaps it better to keep this allocation ???? */ m->m_allocations.erase(it); l.expire(); return VINF_SUCCESS; } l = Lease(client); /* re-new */ return VINF_SUCCESS; }