mirror of
https://github.com/rehlds/rehlds.git
synced 2024-12-29 08:05:50 +03:00
Merge pull request #324 from WPMGPRoSToTeMa/patch-3
Removed split packets processing on the server socket
This commit is contained in:
commit
8513a0eae6
@ -1033,6 +1033,15 @@ qboolean NET_QueuePacket(netsrc_t sock)
|
||||
{
|
||||
if (in_message.cursize >= 9)
|
||||
{
|
||||
#ifdef REHLDS_FIXES
|
||||
// Only server can send split packets, there is no server<->server communication, so server can't receive split packets
|
||||
if (sock == NS_SERVER)
|
||||
{
|
||||
Con_NetPrintf("Someone tries to send split packet to the server\n");
|
||||
return FALSE;
|
||||
}
|
||||
#endif
|
||||
|
||||
return NET_GetLong(in_message.data, ret, &in_message.cursize);
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user