changeset 14249:ac766fc12c2a draft

(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.
author rubidium <rubidium@openttd.org>
date Thu, 14 Jan 2010 21:47:31 +0000
parents ad6fc64331ac
children 14e494dae1a7
files src/network/core/packet.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/network/core/packet.cpp
+++ b/src/network/core/packet.cpp
@@ -141,7 +141,7 @@
 
 	/* Check if variable is within packet-size */
 	if (this->pos + bytes_to_read > this->size) {
-		this->cs->CloseConnection();
+		this->cs->NetworkSocketHandler::CloseConnection();
 		return false;
 	}