DEV9: Fix double calling freeifaddrs()

This commit is contained in:
TheLastRar 2022-05-09 22:14:11 +01:00 committed by lightningterror
parent 17f2fb4471
commit 7f1932e282
1 changed files with 0 additions and 4 deletions

View File

@ -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};