Skip to content

Commit

Permalink
Fix auth failure during realm select
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1arm committed Aug 23, 2024
1 parent 40279f1 commit 192a410
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/game/Server/WorldSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,6 @@ int WorldSocket::HandleAuthSession(WorldPacket& recvPacket)
// NOTE: ATM the socket is singlethread, have this in mind ...
uint8 digest[SHA_DIGEST_LENGTH];
uint32 clientSeed;
uint32 unk2;
uint32 BuiltNumberClient;
uint8 expansion = 0;
std::string account;
Expand Down Expand Up @@ -988,7 +987,7 @@ int WorldSocket::HandleAuthSession(WorldPacket& recvPacket)
sha.UpdateBigNumbers(&K, nullptr);
sha.Finalize();

if (sha.GetDigest() != digest)
if (memcmp(sha.GetDigest(), digest, 20))
{
WorldPacket packet(SMSG_AUTH_RESPONSE, 1);
packet << uint8(AUTH_FAILED);
Expand Down

0 comments on commit 192a410

Please sign in to comment.