summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2019-06-17 15:50:11 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2019-06-17 15:50:11 -0700
commitf0295b154b907a0e306e786d2b5885d464c14811 (patch)
treed8573404945fcb445bc7c73dc3c61409f9d6b9ac
parentb041de831a6d6a68c138cb97b0ad7549712d9516 (diff)
parent21e844cd82f8b6bb03f51de996f5fb91cd3fe1f6 (diff)
downloadinfinitytier-f0295b154b907a0e306e786d2b5885d464c14811.tar.gz
infinitytier-f0295b154b907a0e306e786d2b5885d464c14811.zip
Merge branch 'dev' of http://git.int.zerotier.com/zerotier/ZeroTierOne into dev
-rw-r--r--node/Path.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/node/Path.hpp b/node/Path.hpp
index 9203eee3..ed3e907f 100644
--- a/node/Path.hpp
+++ b/node/Path.hpp
@@ -158,7 +158,9 @@ public:
{
memset(_ifname, 0, 16);
memset(_addrString, 0, sizeof(_addrString));
- _phy->getIfName((PhySocket *)((uintptr_t)_localSocket), _ifname, 16);
+ if (_localSocket != -1) {
+ _phy->getIfName((PhySocket *) ((uintptr_t) _localSocket), _ifname, 16);
+ }
}
/**