summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv
diff options
context:
space:
mode:
authorAndrei Pavel <andrei@isc.org>2023-02-13 16:07:56 +0100
committerThomas Markwalder <tmark@isc.org>2023-02-13 19:48:36 +0100
commitae32698efef4118cce563d743794d7278a53ad20 (patch)
tree52206ae52167b8881684b09a4f2d5130e3b1bca0 /src/lib/dhcpsrv
parent[#2631] Credit added to ChangeLog (diff)
downloadkea-ae32698efef4118cce563d743794d7278a53ad20.tar.xz
kea-ae32698efef4118cce563d743794d7278a53ad20.zip
Apply 2 suggestion(s) to 2 file(s)
Diffstat (limited to 'src/lib/dhcpsrv')
-rw-r--r--src/lib/dhcpsrv/alloc_engine.cc6
-rw-r--r--src/lib/dhcpsrv/alloc_engine.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/dhcpsrv/alloc_engine.cc b/src/lib/dhcpsrv/alloc_engine.cc
index 2b7d8f202d..cad8417d8a 100644
--- a/src/lib/dhcpsrv/alloc_engine.cc
+++ b/src/lib/dhcpsrv/alloc_engine.cc
@@ -3163,9 +3163,9 @@ hasAddressReservation(AllocEngine::ClientContext4& ctx) {
}
// Fetch the globally reserved address if there is one.
- auto host = ctx.hosts_.find(SUBNET_ID_GLOBAL);
- auto global_host_address = ((host != ctx.hosts_.end() && host->second) ?
- host->second->getIPv4Reservation() :
+ auto global_host = ctx.hosts_.find(SUBNET_ID_GLOBAL);
+ auto global_host_address = ((global_host != ctx.hosts_.end() && global_host->second) ?
+ global_host->second->getIPv4Reservation() :
IOAddress::IPV4_ZERO_ADDRESS());
// Start with currently selected subnet.
diff --git a/src/lib/dhcpsrv/alloc_engine.h b/src/lib/dhcpsrv/alloc_engine.h
index 5a25bde686..94692de08f 100644
--- a/src/lib/dhcpsrv/alloc_engine.h
+++ b/src/lib/dhcpsrv/alloc_engine.h
@@ -1839,7 +1839,7 @@ public:
/// @brief Generates a label for subnet or shared-network from subnet
///
- /// Creates a string for the subnet and it's ID for stand alone subnets
+ /// Creates a string for the subnet and its ID for stand alone subnets
/// or the shared-network and its name if the given subnet belongs to a
/// shared-network.
///