From 0afc6a757dab965811b2ae67d7a56f437f7270ef Mon Sep 17 00:00:00 2001 From: killerwife Date: Sun, 3 Mar 2024 19:58:44 +0100 Subject: [PATCH] Network: Remove redundant payload of SMSG_AUTH_CHALLENGE Wotlk + @ratkosrb authorship for noticing --- src/game/Server/WorldSocket.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/game/Server/WorldSocket.cpp b/src/game/Server/WorldSocket.cpp index 99951ea716..75a1b5155d 100644 --- a/src/game/Server/WorldSocket.cpp +++ b/src/game/Server/WorldSocket.cpp @@ -148,17 +148,9 @@ void WorldSocket::SendPacket(const WorldPacket& pct, bool immediate) bool WorldSocket::OnOpen() { // Send startup packet. - WorldPacket packet(SMSG_AUTH_CHALLENGE, 40); + WorldPacket packet(SMSG_AUTH_CHALLENGE, 4); packet << m_seed; - BigNumber seed1; - seed1.SetRand(16 * 8); - packet.append(seed1.AsByteArray(16).data(), 16); // new encryption seeds - - BigNumber seed2; - seed2.SetRand(16 * 8); - packet.append(seed2.AsByteArray(16).data(), 16); // new encryption seeds - SendPacket(packet); return true;