HostDev: Fix Win crash if a NIC doesn't have IP address
This commit is contained in:
parent
178b942d6e
commit
bac7fba1de
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user