summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {