[8278] Update packet size checks in WorldSocket::HandleAuthSession to 3.x state.

This commit is contained in:
VladimirMangos 2009-07-30 12:31:57 +04:00
parent ae61c1eec0
commit 67b52a2294
2 changed files with 3 additions and 3 deletions

View file

@ -755,7 +755,7 @@ int WorldSocket::HandleAuthSession (WorldPacket& recvPacket)
BigNumber K;
if (recvPacket.size () < (4 + 4 + 1 + 4 + 20))
if (recvPacket.size () < (4 + 4 + 1 + 4 + 4 + 20))
{
sLog.outError ("WorldSocket::HandleAuthSession: wrong packet size");
return -1;
@ -767,7 +767,7 @@ int WorldSocket::HandleAuthSession (WorldPacket& recvPacket)
recvPacket >> account;
recvPacket >> unk3;
if (recvPacket.size () < (4 + 4 + (account.size () + 1) + 4 + 20))
if (recvPacket.size () < (4 + 4 + (account.size () + 1) + 4 + 4 + 20))
{
sLog.outError ("WorldSocket::HandleAuthSession: wrong packet size second check");
return -1;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "8277"
#define REVISION_NR "8278"
#endif // __REVISION_NR_H__