summaryrefslogtreecommitdiff
path: root/osdep
diff options
context:
space:
mode:
authorGrant Limberg <grant.limberg@zerotier.com>2019-07-08 12:36:49 -0700
committerGrant Limberg <grant.limberg@zerotier.com>2019-07-08 12:36:49 -0700
commit409406d114d1157e283c50937c895f7c927ed839 (patch)
tree17c67e7b938232da4d888289cf99fa5ba1c93040 /osdep
parent203414910fc07786821a11067b0397d3d3544707 (diff)
downloadinfinitytier-409406d114d1157e283c50937c895f7c927ed839.tar.gz
infinitytier-409406d114d1157e283c50937c895f7c927ed839.zip
Whoops
Diffstat (limited to 'osdep')
-rw-r--r--osdep/LinuxNetLink.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/LinuxNetLink.cpp b/osdep/LinuxNetLink.cpp
index a276b407..6bebfe2e 100644
--- a/osdep/LinuxNetLink.cpp
+++ b/osdep/LinuxNetLink.cpp
@@ -852,7 +852,7 @@ void LinuxNetLink::addAddress(const InetAddress &addr, const char *iface)
int interface_index = _indexForInterface(iface);
for (int reps = 0; interface_index == -1 && reps < 10; ++reps) {
Thread::sleep(100);
- interface_index == _indexForInterface(iface);
+ interface_index = _indexForInterface(iface);
}
if (interface_index == -1) {