HostDev: Fix Win crash if a NIC doesn't have IP address

This commit is contained in:
Srivats P 2019-01-14 18:10:47 +05:30
parent 178b942d6e
commit bac7fba1de

View File

@ -240,7 +240,7 @@ void WinPcapPort::populateInterfaceInfo()
}
PIP_ADAPTER_ADDRESSES adapter = adapterList_;
while (!QString(name()).endsWith(QString(adapter->AdapterName)))
while (adapter && !QString(name()).endsWith(QString(adapter->AdapterName)))
adapter = adapter->Next;
if (!adapter) {