mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-10 13:42:23 +00:00
Off-by-one
This commit is contained in:
parent
b51cf8be2b
commit
d373684bd5
@ -906,7 +906,7 @@ static bool netplay_get_cmd(netplay_t *netplay,
|
||||
|
||||
mode = ntohl(payload[1]);
|
||||
player = mode & 0xFFFF;
|
||||
if (player > MAX_USERS)
|
||||
if (player >= MAX_USERS)
|
||||
return netplay_cmd_nak(netplay, connection);
|
||||
|
||||
if (mode & NETPLAY_CMD_MODE_BIT_YOU)
|
||||
|
Loading…
x
Reference in New Issue
Block a user