summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2011-05-06 22:17:34 +0000
committermichi_cc <michi_cc@openttd.org>2011-05-06 22:17:34 +0000
commit3536f4086a6a0d058a7b98383308a63734ef6007 (patch)
tree53d5e2465e4f258047aba27420e775826acea38b
parent844dc8646f3d265b6aa7daf562d7eb3a7b7586bf (diff)
downloadopenttd-3536f4086a6a0d058a7b98383308a63734ef6007.tar.xz
(svn r22431) -Fix (r22399): NETWORK_RECV_STATUS_MALFORMED_PACKET != false.
-rw-r--r--src/network/core/tcp_content.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/core/tcp_content.cpp b/src/network/core/tcp_content.cpp
index 2b7f609a2..30284f2e7 100644
--- a/src/network/core/tcp_content.cpp
+++ b/src/network/core/tcp_content.cpp
@@ -152,7 +152,7 @@ void NetworkContentSocketHandler::ReceivePackets()
bool NetworkContentSocketHandler::ReceiveInvalidPacket(PacketContentType type)
{
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); }