fix crash when the header of a TCP packet is negative

This commit is contained in:
Lion Kortlepel
2022-10-31 01:49:28 +01:00
parent 7abfae425d
commit b0b4dc51b0

View File

@@ -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;
}
}