From 83c8c562bbe006df262bd58d6ab349e3ea3f5349 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 14 Jan 2010 21:47:31 +0000 Subject: (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. --- src/network/core/packet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2