mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-06-17 14:12:25 +00:00
fix crash when the header of a TCP packet is negative
This commit is contained in:
+1
-1
@@ -111,7 +111,7 @@ void TNetwork::UDPServerMain() {
|
|||||||
++Locked->UdpPacketsReceived;
|
++Locked->UdpPacketsReceived;
|
||||||
Data.erase(Data.begin() + 0, Data.begin() + 2);
|
Data.erase(Data.begin() + 0, Data.begin() + 2);
|
||||||
TServer::GlobalParser(Locked, std::move(Data), mPPSMonitor, *this);
|
TServer::GlobalParser(Locked, std::move(Data), mPPSMonitor, *this);
|
||||||
} catch (const std::exception&) {
|
} catch (const std::exception&) {
|
||||||
++Application::InvalidUdpPackets;
|
++Application::InvalidUdpPackets;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user