~ubuntu-branches/debian/squeeze/openttd/squeeze

« back to all changes in this revision

Viewing changes to src/console_cmds.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Matthijs Kooijman
  • Date: 2008-08-08 11:07:05 UTC
  • mfrom: (1.1.4 upstream) (2.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080808110705-zq0eo95c4pexg70i
* New upstream release.
  - Fixes remote crash vulnerability CVE-2008-3547. Closes: #493714

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: console_cmds.cpp 13200 2008-05-20 20:14:34Z rubidium $ */
 
1
/* $Id: console_cmds.cpp 13689 2008-07-09 19:30:44Z rubidium $ */
2
2
 
3
3
/** @file console_cmds.cpp */
4
4
 
426
426
        }
427
427
 
428
428
        if (ci != NULL) {
 
429
                IConsolePrint(_icolour_def, "Client banned");
429
430
                banip = inet_ntoa(*(struct in_addr *)&ci->client_ip);
430
431
                SEND_COMMAND(PACKET_SERVER_ERROR)(NetworkFindClientStateFromIndex(index), NETWORK_ERROR_KICKED);
431
 
                IConsolePrint(_icolour_def, "Client banned");
432
432
        } else {
433
433
                IConsolePrint(_icolour_def, "Client not online, banned IP");
434
434
        }