]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[686-is-it-necessary-to-run-the-sanity-checker-during-lfc-as-well-as-when-starting...
authorFrancis Dupont <fdupont@isc.org>
Fri, 28 Jun 2019 20:55:44 +0000 (22:55 +0200)
committerThomas Markwalder <tmark@isc.org>
Mon, 1 Jul 2019 12:12:24 +0000 (08:12 -0400)
src/lib/dhcpsrv/lease_file_loader.h
src/lib/dhcpsrv/sanity_checker.h

index 1a13f22af14b5aedbe82463302f4da78a715dd81..0da1098bf294862be0a7d497748956434bbe87c3 100644 (file)
@@ -134,7 +134,7 @@ public:
                     .arg(lease->toText());
 
                 if (lease_checker)  {
-                    // If the lease is insane the checker will rese the lease pointer.
+                    // If the lease is insane the checker will reset the lease pointer.
                     // As lease file is loaded during the configuration, we have
                     // to use staging config, rather than current config for this
                     // (false = staging).
index 57fe7f8e1908a5b61601648eda52324ee8c4241b..9b84789bf8a8768e4844017849c6c2f07389afe0 100644 (file)
@@ -28,8 +28,8 @@ class SanityChecker {
     /// correct subnet-id or discard the lease.
     ///
     /// @param lease Lease to be sanity-checked
-    /// @param current specify whether to use current (true) or staging(false)
-    ///                config
+    /// @param current specify whether to use current (true) or staging
+    ///        (false) config
     void checkLease(Lease4Ptr& lease, bool current = true);
 
     /// @brief Sanity checks and possibly corrects an IPv6 lease
@@ -40,8 +40,8 @@ class SanityChecker {
     /// type is TYPE_PD, it simply returns.
     ///
     /// @param lease Lease to be sanity-checked
-    /// @param current specify whether to use current (true) or staging(false)
-    ///                config
+    /// @param current specify whether to use current (true) or staging
+    ///        (false) config
     void checkLease(Lease6Ptr& lease, bool current = true);
 
     /// @brief Indicates the specified configuration enables lease sanity checking.