فهرست منبع

Fix possible use-after-free in lobby server

Ivan Savenko 9 ماه پیش
والد
کامیت
3965c6a0a1
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      lobby/LobbyServer.cpp

+ 1 - 1
lobby/LobbyServer.cpp

@@ -325,7 +325,7 @@ void LobbyServer::onDisconnected(const NetworkConnectionPtr & connection, const
 
 	if(activeProxies.count(connection))
 	{
-		const auto & otherConnection = activeProxies.at(connection);
+		const auto otherConnection = activeProxies.at(connection);
 
 		if (otherConnection)
 			otherConnection->close();