From b175d2a829b5599525b76d4abc26a7bd5ca3f4af Mon Sep 17 00:00:00 2001 From: Artem Golubikhin Date: Fri, 27 Jan 2017 02:26:33 +0300 Subject: [PATCH] Removed split packets processing on the server socket --- rehlds/engine/net_ws.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/rehlds/engine/net_ws.cpp b/rehlds/engine/net_ws.cpp index 4a066cf..0c8370a 100644 --- a/rehlds/engine/net_ws.cpp +++ b/rehlds/engine/net_ws.cpp @@ -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