(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.

This commit is contained in:
rubidium
2010-01-14 21:47:31 +00:00
parent 2f667d21e9
commit 119d742015

View File

@@ -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;
}