mirror of https://github.com/PCSX2/pcsx2.git
IPC: add safety warranty on slot numbers
This commit is contained in:
parent
0142d33d5c
commit
df7ee3b166
|
@ -56,7 +56,8 @@ SocketIPC::SocketIPC(SysCoreThread* vm, unsigned int slot)
|
|||
return;
|
||||
}
|
||||
|
||||
if ((m_sock = socket(AF_INET, SOCK_STREAM, 0)) == INVALID_SOCKET)
|
||||
m_sock = socket(AF_INET, SOCK_STREAM, 0);
|
||||
if ((m_sock == INVALID_SOCKET) || slot > 65536)
|
||||
{
|
||||
Console.WriteLn(Color_Red, "IPC: Cannot open socket! Shutting down...");
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue