]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#754,!558] Addressed belated review comment 754-possible-bug-in-dhcpv6-allocation-engine-code-2
authorThomas Markwalder <tmark@isc.org>
Fri, 18 Oct 2019 14:40:31 +0000 (10:40 -0400)
committerThomas Markwalder <tmark@isc.org>
Fri, 18 Oct 2019 14:40:31 +0000 (10:40 -0400)
src/lib/dhcpsrv/tests/alloc_engine_utils.h

index 2b547a4f55beb10338c3711447c49cafdde46ac4..3a24f0520b4621ba774a87176a97daff123d8a75 100644 (file)
@@ -440,7 +440,7 @@ public:
                       uint8_t prefix_len);
 
     /// @brief Utility function that decrements cltt of a persisted lease
-    /// 
+    ///
     /// This function is used to simulate the passage of time by decrementing
     /// the lease's cltt, currently by 1.  It fetches the desired lease from the
     /// lease manager, decrements the cltt, then updates the lease in the lease
@@ -448,14 +448,14 @@ public:
     ///
     /// @param[in][out] lease pointer reference to the lease to modify.  Upon
     /// return it will point to the newly updated lease.
-    void 
+    void
     rollbackPersistedCltt(Lease6Ptr& lease) {
-        ASSERT_TRUE(lease) << "rollbackCltt lease is empty";
-       
-        // Fetch it, so we can update it. 
+        ASSERT_TRUE(lease) << "rollbackPersistedCltt lease is empty";
+
+        // Fetch it, so we can update it.
         Lease6Ptr from_mgr = LeaseMgrFactory::instance().getLease6(lease->type_,
                                                                    lease->addr_);
-        ASSERT_TRUE(from_mgr) << "rollbackCltt: lease not found?";
+        ASSERT_TRUE(from_mgr) << "rollbackPersistedCltt: lease not found?";
 
         // Decrement cltt then update it in the manager.
         --from_mgr->cltt_;