Browse Source

Merge branch 'netcon' of http://git.int.zerotier.com/zerotier/zerotierone into netcon

Adam Ierymenko 10 years ago
parent
commit
ca6ec120a9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      netcon/NetconEthernetTap.cpp

+ 1 - 1
netcon/NetconEthernetTap.cpp

@@ -101,7 +101,7 @@ bool NetconEthernetTap::addIp(const InetAddress &ip)
 bool NetconEthernetTap::removeIp(const InetAddress &ip)
 bool NetconEthernetTap::removeIp(const InetAddress &ip)
 {
 {
 	Mutex::Lock _l(_ips_m);
 	Mutex::Lock _l(_ips_m);
-	std::vector<InetAddress> i(std::find(_ips.begin(),_ips.end(),ip));
+	std::vector<InetAddress>::iterator i(std::find(_ips.begin(),_ips.end(),ip));
 	if (i == _ips.end())
 	if (i == _ips.end())
 		return false;
 		return false;