Browse Source

Merge pull request #2117 from mittwerk/openssl

hardening iterator
pull/2118/head
orignal 4 days ago committed by GitHub
parent
commit
3a229ea65c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      libi2pd_client/UDPTunnel.cpp

2
libi2pd_client/UDPTunnel.cpp

@ -203,7 +203,7 @@ namespace client @@ -203,7 +203,7 @@ namespace client
std::vector<std::shared_ptr<DatagramSessionInfo> > sessions;
std::lock_guard<std::mutex> lock (m_SessionsMutex);
for (auto it: m_Sessions)
for (const auto &it: m_Sessions)
{
auto s = it.second;
if (!s->m_Destination) continue;

Loading…
Cancel
Save