mirror of https://github.com/PCSX2/pcsx2.git
DEV9: Fix double calling freeifaddrs()
This commit is contained in:
parent
17f2fb4471
commit
7f1932e282
|
@ -232,7 +232,6 @@ SocketAdapter::SocketAdapter()
|
|||
if (!foundAdapter)
|
||||
{
|
||||
Console.Error("DEV9: Socket: Auto Selection Failed, Check You Connection or Manually Specify Adapter");
|
||||
freeifaddrs(buffer);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -676,9 +675,6 @@ void SocketAdapter::reloadSettings()
|
|||
foundAdapter = GetIfSelectedAdapter(EmuConfig.DEV9.EthDevice, &adapter, &buffer);
|
||||
else
|
||||
foundAdapter = GetIfAutoAdapter(&adapter, &buffer);
|
||||
|
||||
if (foundAdapter)
|
||||
freeifaddrs(buffer);
|
||||
#endif
|
||||
|
||||
const IP_Address ps2IP = {internalIP.bytes[0], internalIP.bytes[1], internalIP.bytes[2], 100};
|
||||
|
|
Loading…
Reference in New Issue