From 06022e4b192ffed00a0f4b214b46ecb13939badd Mon Sep 17 00:00:00 2001 From: David Markowitz <39972741+EmosewaMC@users.noreply.github.com> Date: Thu, 18 Sep 2025 23:12:34 -0700 Subject: [PATCH] fix: use after free in TCPInterface (#1879) lol --- thirdparty/raknet/Source/TCPInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thirdparty/raknet/Source/TCPInterface.cpp b/thirdparty/raknet/Source/TCPInterface.cpp index c8238c1b..59d2320f 100644 --- a/thirdparty/raknet/Source/TCPInterface.cpp +++ b/thirdparty/raknet/Source/TCPInterface.cpp @@ -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; }