Skip to content

Commit

Permalink
Network: Remove redundant payload of SMSG_AUTH_CHALLENGE
Browse files Browse the repository at this point in the history
Wotlk +

@ratkosrb authorship for noticing
  • Loading branch information
killerwife committed Mar 3, 2024
1 parent ea5fd3b commit 0afc6a7
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/game/Server/WorldSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0afc6a7

Please sign in to comment.