From fe3ad5e2cc27b6b7e9bf8f78e6e681bd10315143 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 8 Aug 2014 14:57:13 -0700 Subject: Fix a Windows bug in refactored tap code, and always make sure we have a firewall exception rule on startup. --- osnet/WindowsEthernetTap.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'osnet/WindowsEthernetTap.cpp') diff --git a/osnet/WindowsEthernetTap.cpp b/osnet/WindowsEthernetTap.cpp index 8326597a..0e580643 100644 --- a/osnet/WindowsEthernetTap.cpp +++ b/osnet/WindowsEthernetTap.cpp @@ -706,8 +706,9 @@ NET_IFINDEX WindowsEthernetTap::_getDeviceIndex() for(ULONG i=0;iNumEntries;++i) { if (ift->Table[i].InterfaceLuid.Value == _deviceLuid.Value) { + NET_IFINDEX idx = ift->Table[i].InterfaceIndex; FreeMibTable(ift); - return ift->Table[i].InterfaceIndex; + return idx; } } -- cgit v1.2.3