2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-02 15:05:16 +00:00

[#3785] Silent Wshadow

This commit is contained in:
Francis Dupont
2025-03-20 14:43:42 +01:00
parent 559be2b5e6
commit 47458ff23d

View File

@@ -251,10 +251,10 @@ CtrlAgentProcess::configure(isc::data::ConstElementPtr config_set,
} else { } else {
// If the connection can not be reused, stop it and remove it from the list. // If the connection can not be reused, stop it and remove it from the list.
data.second->listener_->stop(); data.second->listener_->stop();
auto it = sockets_.find(std::make_pair(data.second->config_->getHttpHost(), auto it2 = sockets_.find(std::make_pair(data.second->config_->getHttpHost(),
data.second->config_->getHttpPort())); data.second->config_->getHttpPort()));
if (it != sockets_.end()) { if (it2 != sockets_.end()) {
sockets_.erase(it); sockets_.erase(it2);
} }
} }
} }