diff options
author | rubidium <rubidium@openttd.org> | 2010-01-14 21:47:31 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-01-14 21:47:31 +0000 |
commit | 83c8c562bbe006df262bd58d6ab349e3ea3f5349 (patch) | |
tree | 3d01d74ab5315abfa21d91c56e5430feade46bf3 /src | |
parent | f42b435d2864f16b078d5b49200ffff75bcf4dc5 (diff) | |
download | openttd-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/network/core/packet.cpp | 2 |
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; } |