From b0b4dc51b0ed89e3b584b4ecd1c16e4422eaf2ab Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Mon, 31 Oct 2022 01:49:28 +0100 Subject: [PATCH] fix crash when the header of a TCP packet is negative --- src/TNetwork.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TNetwork.cpp b/src/TNetwork.cpp index d68f334..b0d1786 100644 --- a/src/TNetwork.cpp +++ b/src/TNetwork.cpp @@ -111,7 +111,7 @@ void TNetwork::UDPServerMain() { ++Locked->UdpPacketsReceived; Data.erase(Data.begin() + 0, Data.begin() + 2); TServer::GlobalParser(Locked, std::move(Data), mPPSMonitor, *this); - } catch (const std::exception&) { + } catch (const std::exception&) { ++Application::InvalidUdpPackets; } }