mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-03 22:36:23 +00:00
fix crash when the header of a TCP packet is negative
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user