From: Razvan Becheriu Date: Mon, 29 Mar 2021 17:44:12 +0000 (+0300) Subject: [#1621] addressed comments X-Git-Tag: Kea-1.9.6~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cff3de93c66fb750e99c41387b4fa3e2e8983426;p=thirdparty%2Fkea.git [#1621] addressed comments --- diff --git a/src/lib/config_backend/base_config_backend_pool.h b/src/lib/config_backend/base_config_backend_pool.h index 277b28b703..700fd06fee 100644 --- a/src/lib/config_backend/base_config_backend_pool.h +++ b/src/lib/config_backend/base_config_backend_pool.h @@ -94,7 +94,9 @@ public: if (if_unusable) { deleted = true; } + typename std::list::iterator backend = backends_.begin(); + while (backend != backends_.end()) { if ((*backend)->getType() != db_type || (*backend)->getParameters() != parameters) { ++backend; diff --git a/src/lib/dhcpsrv/host_data_source_factory.cc b/src/lib/dhcpsrv/host_data_source_factory.cc index c9911adafc..a41083d392 100644 --- a/src/lib/dhcpsrv/host_data_source_factory.cc +++ b/src/lib/dhcpsrv/host_data_source_factory.cc @@ -110,6 +110,7 @@ HostDataSourceFactory::del(HostDataSourceList& sources, if (if_unusable) { deleted = true; } + for (auto it = sources.begin(); it != sources.end(); ++it) { if ((*it)->getType() != db_type || (*it)->getParameters() != parameters) { continue;