When bailing out of packet decoding make sure to call NETend()

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3668 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2008-02-03 17:46:03 +00:00
parent 208a399d73
commit 70d7e095f0
1 changed files with 1 additions and 0 deletions

View File

@ -803,6 +803,7 @@ BOOL NETprocessSystemMessage(NETMSG * pMsg)
if (dpid >= MAX_CONNECTED_PLAYERS)
{
debug(LOG_NET, "NETprocessSystemMessage: MSG_PLAYER_INFO: Player ID (%u) out of range (max %u)", (unsigned int)dpid, (unsigned int)MAX_CONNECTED_PLAYERS);
NETend();
break;
}