summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-01-14 21:47:31 +0000
committerrubidium <rubidium@openttd.org>2010-01-14 21:47:31 +0000
commit83c8c562bbe006df262bd58d6ab349e3ea3f5349 (patch)
tree3d01d74ab5315abfa21d91c56e5430feade46bf3
parentf42b435d2864f16b078d5b49200ffff75bcf4dc5 (diff)
downloadopenttd-83c8c562bbe006df262bd58d6ab349e3ea3f5349.tar.xz
(svn r18800) -Fix: in some cases with invalid packets one can crash recent trunk and 1.0.0 betas; 0.7.5 and before can't be crashed though.
-rw-r--r--src/network/core/packet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/core/packet.cpp b/src/network/core/packet.cpp
index a70bd6ca0..5f48ed055 100644
--- a/src/network/core/packet.cpp
+++ b/src/network/core/packet.cpp
@@ -141,7 +141,7 @@ bool Packet::CanReadFromPacket(uint bytes_to_read)
/* Check if variable is within packet-size */
if (this->pos + bytes_to_read > this->size) {
- this->cs->CloseConnection();
+ this->cs->NetworkSocketHandler::CloseConnection();
return false;
}