Compare commits

...

1 Commits

Author SHA1 Message Date
David Markowitz
bcbc551ebd fix: use after free in TCPInterface
lol
2025-09-18 22:56:17 -07:00

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