(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 f920607c21
commit fc5af08ef8
4 changed files with 33 additions and 16 deletions

View File

@@ -755,7 +755,7 @@ void NetworkReboot()
}
ServerNetworkAdminSocketHandler *as;
FOR_ALL_ADMIN_SOCKETS(as) {
FOR_ALL_ACTIVE_ADMIN_SOCKETS(as) {
as->SendNewGame();
as->SendPackets();
}
@@ -782,7 +782,7 @@ void NetworkDisconnect(bool blocking, bool close_admins)
if (close_admins) {
ServerNetworkAdminSocketHandler *as;
FOR_ALL_ADMIN_SOCKETS(as) {
FOR_ALL_ACTIVE_ADMIN_SOCKETS(as) {
as->SendShutdown();
as->SendPackets();
}