summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rw-r--r--src/net/ea/network.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/ea/network.cpp b/src/net/ea/network.cpp
index 7ddc0bc2..b3e0032a 100644
--- a/src/net/ea/network.cpp
+++ b/src/net/ea/network.cpp
@@ -223,6 +223,9 @@ void Network::dispatchMessages()
MessageHandlerIterator iter = mMessageHandlers.find(msg.getId());
+ if (msg.getLength() == 0)
+ logger->error("Zero length packet received. Exiting.");
+
if (iter != mMessageHandlers.end())
{
iter->second->handleMessage(msg);