mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-27 08:22:31 +00:00
Fix infinite loop typo.
This commit is contained in:
parent
f0003ea922
commit
fadb291962
@ -72,10 +72,12 @@ public:
|
|||||||
inline std::vector< std::pair<Address,InetAddress> > getReportedSurface() const
|
inline std::vector< std::pair<Address,InetAddress> > getReportedSurface() const
|
||||||
{
|
{
|
||||||
std::vector< std::pair<Address,InetAddress> > r;
|
std::vector< std::pair<Address,InetAddress> > r;
|
||||||
Mutex::Lock _l(_phy_m);
|
{
|
||||||
r.reserve(_phy.size());
|
Mutex::Lock _l(_phy_m);
|
||||||
for(std::map< PhySurfaceKey,PhySurfaceEntry >::const_iterator p(_phy.begin());p!=_phy.end();)
|
r.reserve(_phy.size());
|
||||||
r.push_back(std::pair<Address,InetAddress>(p->first.reporter,p->second.mySurface));
|
for(std::map< PhySurfaceKey,PhySurfaceEntry >::const_iterator p(_phy.begin());p!=_phy.end();++p)
|
||||||
|
r.push_back(std::pair<Address,InetAddress>(p->first.reporter,p->second.mySurface));
|
||||||
|
}
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user