Skip to content
Snippets Groups Projects
Unverified Commit fe87760c authored by Hanicef's avatar Hanicef
Browse files

Fix buffer overflow in SV_SendPlayerInfo

parent 2450a0df
No related branches found
No related tags found
2 merge requests!2355fix newer versions of mixerx,!2209Do not send disconnected players' statuses to the MS
......@@ -164,7 +164,7 @@ static void SV_SendPlayerInfo(INT32 node)
for (UINT8 i = 0; i < MAXPLAYERS; i++)
{
if (!netnodes[playernode[i]].ingame)
if (playernode[i] == UINT8_MAX || !netnodes[playernode[i]].ingame)
{
netbuffer->u.playerinfo[i].num = 255; // This slot is empty.
continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment