From 6b5105eecc73d586e030eedff031652c7b40b236 Mon Sep 17 00:00:00 2001 From: BruebachL <44814898+BruebachL@users.noreply.github.com> Date: Sun, 23 Aug 2026 02:59:46 +0200 Subject: [PATCH] [Network] Don't allow Event_ListGames to leak info and bloat bandwith (#7164) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Took 20 minutes Co-authored-by: Lukas BrĂ¼bach --- .../libcockatrice/network/server/remote/game/server_game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcockatrice_network/libcockatrice/network/server/remote/game/server_game.cpp b/libcockatrice_network/libcockatrice/network/server/remote/game/server_game.cpp index 069a10463..f537c3cd5 100644 --- a/libcockatrice_network/libcockatrice/network/server/remote/game/server_game.cpp +++ b/libcockatrice_network/libcockatrice/network/server/remote/game/server_game.cpp @@ -829,7 +829,7 @@ void Server_Game::getInfo(ServerInfo_Game &result) const result.mutable_creator_info()->CopyFrom(*getCreatorInfo()); const Server_AbstractParticipant *host = participants.value(hostId, nullptr); if (host != nullptr) { - result.mutable_host_info()->CopyFrom(*host->getUserInfo()); + host->copyUserInfo(*result.mutable_host_info(), false); } else { result.mutable_host_info()->CopyFrom(*getCreatorInfo()); }