2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-01 01:25:38 +03:00

Merge pull request #324 from WPMGPRoSToTeMa/patch-3

Removed split packets processing on the server socket
This commit is contained in:
theAsmodai 2017-01-27 03:09:03 +03:00 committed by GitHub
commit 8513a0eae6

View File

@ -1033,6 +1033,15 @@ qboolean NET_QueuePacket(netsrc_t sock)
{ {
if (in_message.cursize >= 9) 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); return NET_GetLong(in_message.data, ret, &in_message.cursize);
} }
else else