1
0

Fixed 1.7.2 login packet reading.

Fixes #1317.
This commit is contained in:
Mattes D 2014-08-21 21:38:57 +02:00
parent c22261252f
commit d471ee8a9d

View File

@ -1824,7 +1824,11 @@ void cProtocol172::HandlePacketLoginEncryptionResponse(cByteBuffer & a_ByteBuffe
void cProtocol172::HandlePacketLoginStart(cByteBuffer & a_ByteBuffer)
{
AString Username;
a_ByteBuffer.ReadVarUTF8String(Username);
if (!a_ByteBuffer.ReadVarUTF8String(Username))
{
m_Client->Kick("Bad username");
return;
}
if (!m_Client->HandleHandshake(Username))
{