Log packet size parse failures in NetworkTCPSocketHandler

This commit is contained in:
Jonathan G Rennison
2021-05-21 01:42:31 +01:00
parent 6d58115458
commit 66289bbda4

View File

@@ -184,6 +184,7 @@ std::unique_ptr<Packet> NetworkTCPSocketHandler::ReceivePacket()
/* Parse the size in the received packet and if not valid, close the connection. */
if (!p->ParsePacketSize()) {
DEBUG(net, 0, "ParsePacketSize failed, possible packet stream corruption");
this->CloseConnection();
return nullptr;
}