summaryrefslogtreecommitdiff
path: root/osdep/ManagedRoute.cpp
diff options
context:
space:
mode:
authorJoseph Henry <josephjah@gmail.com>2017-12-18 15:07:58 -0800
committerJoseph Henry <josephjah@gmail.com>2017-12-18 15:07:58 -0800
commita9c4ce38f0b3aaae7e354e56dd6548f8e1ae928d (patch)
tree3b71a48cd791e540af4c65657c29fa3e7f1a7043 /osdep/ManagedRoute.cpp
parentbbc39d76487f197cbdba84d8ca53a991f917e0fe (diff)
downloadinfinitytier-a9c4ce38f0b3aaae7e354e56dd6548f8e1ae928d.tar.gz
infinitytier-a9c4ce38f0b3aaae7e354e56dd6548f8e1ae928d.zip
eh
Diffstat (limited to 'osdep/ManagedRoute.cpp')
-rw-r--r--osdep/ManagedRoute.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/osdep/ManagedRoute.cpp b/osdep/ManagedRoute.cpp
index 2da4cd2b..a3746572 100644
--- a/osdep/ManagedRoute.cpp
+++ b/osdep/ManagedRoute.cpp
@@ -480,9 +480,8 @@ bool ManagedRoute::sync()
// Detect routes previously applied by ZT that don't exist in the system's route list. Re-apply these.
// NOTE: The following block was added in reaction to the macOS High Sierra 10.13.2 disappearing
// route issue. This comment should be removed once we're sure this block doesn't have any side-effects.
- bool found;
+ bool found = false;
std::vector<_RTE> currRoutes(_getRTEs(_target,false));
- found = false;
for(std::vector<_RTE>::iterator r(currRoutes.begin());r!=currRoutes.end();++r) {
if(_target == r->target) {
found = true;