Skip to content

Commit

Permalink
Immediately drop player who sends invalid player data
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenCWills authored and AJenbo committed Jul 20, 2023
1 parent b43a8dc commit b171173
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/multi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,7 @@ void recv_plrinfo(int pnum, const TCmdPlrInfoHdr &header, bool recv)
PlayerLeftMsg(pnum, false);
if (!UnPackNetPlayer(packedPlayer, player)) {
player = {};
SNetDropPlayer(pnum, LEAVE_DROP);
return;
}

Expand Down

0 comments on commit b171173

Please sign in to comment.