mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-08 22:26:51 +02:00
Fix possible use-after-free in lobby server
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user