From afa41fa88e5e0bca79e11ba25b1295af8eb4c645 Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 1 Mar 2024 21:14:23 +0100 Subject: [PATCH] Do not attempt to disconnect when a packet checksum is invalid --- src/d_net.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/d_net.c b/src/d_net.c index 1b4550d35..2b8b563db 100644 --- a/src/d_net.c +++ b/src/d_net.c @@ -1171,8 +1171,9 @@ boolean HGetPacket(void) if (netbuffer->checksum != NetbufferChecksum()) { DEBFILE("Bad packet checksum\n"); - //Net_CloseConnection(nodejustjoined ? (doomcom->remotenode | FORCECLOSE) : doomcom->remotenode); - Net_CloseConnection(doomcom->remotenode); + // Do not disconnect or anything, just ignore the packet. + // Bad checksums with UDP tend to happen very scarcely + // so they are not normally an issue. continue; }