fix: use after free in TCPInterface

lol
This commit is contained in:
David Markowitz
2025-09-18 22:56:17 -07:00
committed by GitHub
parent 68f2e2dee2
commit bcbc551ebd

View File

@@ -211,8 +211,8 @@ SystemAddress TCPInterface::Connect(const char* host, unsigned short remotePort,
int errorCode = RakNet::RakThread::Create(ConnectionAttemptLoop, s);
if (errorCode!=0)
{
delete s;
failedConnectionAttempts.Push(s->systemAddress);
delete s;
}
return UNASSIGNED_SYSTEM_ADDRESS;
}