mirror of https://github.com/OpenTTD/OpenTTD
(svn r22431) -Fix (r22399): NETWORK_RECV_STATUS_MALFORMED_PACKET != false.
parent
844dc8646f
commit
3536f4086a
|
@ -152,7 +152,7 @@ void NetworkContentSocketHandler::ReceivePackets()
|
||||||
bool NetworkContentSocketHandler::ReceiveInvalidPacket(PacketContentType type)
|
bool NetworkContentSocketHandler::ReceiveInvalidPacket(PacketContentType type)
|
||||||
{
|
{
|
||||||
DEBUG(net, 0, "[tcp/content] received illegal packet type %d from %s", type, this->client_addr.GetAddressAsString());
|
DEBUG(net, 0, "[tcp/content] received illegal packet type %d from %s", type, this->client_addr.GetAddressAsString());
|
||||||
return NETWORK_RECV_STATUS_MALFORMED_PACKET;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool NetworkContentSocketHandler::Receive_CLIENT_INFO_LIST(Packet *p) { return this->ReceiveInvalidPacket(PACKET_CONTENT_CLIENT_INFO_LIST); }
|
bool NetworkContentSocketHandler::Receive_CLIENT_INFO_LIST(Packet *p) { return this->ReceiveInvalidPacket(PACKET_CONTENT_CLIENT_INFO_LIST); }
|
||||||
|
|
Loading…
Reference in New Issue