summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/lease_mgr.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/dhcpsrv/lease_mgr.cc')
-rw-r--r--src/lib/dhcpsrv/lease_mgr.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/dhcpsrv/lease_mgr.cc b/src/lib/dhcpsrv/lease_mgr.cc
index 9287f1d28f..00a3200341 100644
--- a/src/lib/dhcpsrv/lease_mgr.cc
+++ b/src/lib/dhcpsrv/lease_mgr.cc
@@ -722,7 +722,7 @@ LeaseMgr::upgradeLease4ExtendedInfo(const Lease4Ptr& lease,
}
verifying = "relay-agent-info";
- for (auto elem : extended_info->mapValue()) {
+ for (auto const& elem : extended_info->mapValue()) {
if ((elem.first != "sub-options") &&
(elem.first != "remote-id") &&
(elem.first != "relay-id") &&
@@ -1060,7 +1060,7 @@ LeaseMgr::upgradeLease6ExtendedInfo(const Lease6Ptr& lease,
}
verifying = (upgraded ? "relays" : "relay-info");
- for (auto elem : relay->mapValue()) {
+ for (auto const& elem : relay->mapValue()) {
if ((elem.first != "hop") &&
(elem.first != "link") &&
(elem.first != "peer") &&