summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-11-24 14:11:31 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-11-24 14:11:31 -0800
commit75637f68b3f7a7bbd03a99287b82e442d0b5b354 (patch)
tree3219d373621a38df8b54903df856b705dd45c42b /service
parent764dd1c3d94527c0870a913ac314b3b17eaea282 (diff)
parent56cb2f43fae8d876e7e62bae050cfb00a30c1472 (diff)
downloadinfinitytier-75637f68b3f7a7bbd03a99287b82e442d0b5b354.tar.gz
infinitytier-75637f68b3f7a7bbd03a99287b82e442d0b5b354.zip
Merge branch 'dev' of github.com:zerotier/ZeroTierOne into dev
Diffstat (limited to 'service')
-rw-r--r--service/OneService.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/service/OneService.cpp b/service/OneService.cpp
index a912c830..8e21fc5f 100644
--- a/service/OneService.cpp
+++ b/service/OneService.cpp
@@ -1147,11 +1147,13 @@ public:
newAssignedIps.erase(std::unique(newAssignedIps.begin(),newAssignedIps.end()),newAssignedIps.end());
for(std::vector<InetAddress>::iterator ip(newAssignedIps.begin());ip!=newAssignedIps.end();++ip) {
if (!std::binary_search(assignedIps.begin(),assignedIps.end(),*ip))
- t->second->addIp(*ip);
+ if (!t->second->addIp(*ip))
+ fprintf(stderr,"ERROR: unable to add ip address %s"ZT_EOL_S, ip->toString().c_str());
}
for(std::vector<InetAddress>::iterator ip(assignedIps.begin());ip!=assignedIps.end();++ip) {
if (!std::binary_search(newAssignedIps.begin(),newAssignedIps.end(),*ip))
- t->second->removeIp(*ip);
+ if (!t->second->removeIp(*ip))
+ fprintf(stderr,"ERROR: unable to remove ip address %s"ZT_EOL_S, ip->toString().c_str());
}
assignedIps.swap(newAssignedIps);
} else {