aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-07-31 11:37:31 +0800
committermegamage <none@none>2009-07-31 11:37:31 +0800
commitccd6764409358197a741cfc81d6f86ace41d3125 (patch)
treeae331bfff0af1a7c8a920b7e031ffaa301933997 /src
parentbf989ce07308050183387651e4e8fe44aa204968 (diff)
[8278] Update packet size checks in WorldSocket::HandleAuthSession to 3.x state. Author: VladimirMangos
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/WorldSocket.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/WorldSocket.cpp b/src/game/WorldSocket.cpp
index 872ca67e95b..0efb0cd3d4e 100644
--- a/src/game/WorldSocket.cpp
+++ b/src/game/WorldSocket.cpp
@@ -678,7 +678,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;
@@ -700,7 +700,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;