(svn r22934) -Fix [FS#4771]: prevent authentication bypass for the admin port when a new game is started

This commit is contained in:
rubidium
2011-09-15 18:28:39 +00:00
parent fd79d18c3f
commit 998bbde49e
4 changed files with 33 additions and 16 deletions

View File

@@ -96,6 +96,14 @@ public:
*/
#define FOR_ALL_ADMIN_SOCKETS(var) FOR_ALL_ADMIN_SOCKETS_FROM(var, 0)
/**
* Iterate over all the active sockets.
* @param var The variable to iterate with.
*/
#define FOR_ALL_ACTIVE_ADMIN_SOCKETS(var) \
FOR_ALL_ADMIN_SOCKETS(var) \
if (var->GetAdminStatus() == ADMIN_STATUS_ACTIVE)
void NetworkAdminClientInfo(const NetworkClientSocket *cs, bool new_client = false);
void NetworkAdminClientUpdate(const NetworkClientInfo *ci);
void NetworkAdminClientQuit(ClientID client_id);