diff options
| author | kaelima <kaelima@live.se> | 2012-06-03 23:34:08 +0200 |
|---|---|---|
| committer | kaelima <kaelima@live.se> | 2012-06-03 23:34:24 +0200 |
| commit | 1dc6bd69aa58b77b4ff79e72181d214f1eb7192b (patch) | |
| tree | 7756968a08fbdc032fe746bd8dfadb1e47c7d9cd /src | |
| parent | c7cb120449d47bc9da69b8b65fa80272582d4371 (diff) | |
Core/Auth: Correct a bad error log during authentication
Diffstat (limited to 'src')
| -rwxr-xr-x | src/server/game/Server/WorldSocket.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/game/Server/WorldSocket.cpp b/src/server/game/Server/WorldSocket.cpp index 64137dfe7c7..98ec517cdac 100755 --- a/src/server/game/Server/WorldSocket.cpp +++ b/src/server/game/Server/WorldSocket.cpp @@ -955,6 +955,8 @@ int WorldSocket::HandleAuthSession (WorldPacket& recvPacket) sha.UpdateBigNumbers (&k, NULL); sha.Finalize(); + std::string address = GetRemoteAddress(); + if (memcmp (sha.GetDigest(), digest, 20)) { packet.Initialize (SMSG_AUTH_RESPONSE, 1); @@ -962,13 +964,11 @@ int WorldSocket::HandleAuthSession (WorldPacket& recvPacket) SendPacket(packet); - sLog->outError("WorldSocket::HandleAuthSession: Sent Auth Response (authentification failed)."); + sLog->outError("WorldSocket::HandleAuthSession: Authentication failed for account: %u ('%s') address: %s", id, account.c_str(), address.c_str()); return -1; } - std::string address = GetRemoteAddress(); - - sLog->outStaticDebug ("WorldSocket::HandleAuthSession: Client '%s' authenticated successfully from %s.", + sLog->outStaticDebug("WorldSocket::HandleAuthSession: Client '%s' authenticated successfully from %s.", account.c_str(), address.c_str()); |
