aboutsummaryrefslogtreecommitdiff
path: root/src/server/game
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-04-03 21:23:30 +0200
committerOvahlord <dreadkiller@gmx.de>2024-05-28 16:33:14 +0200
commit03d40c8afe26cbed5b693be36b9dafe3189bf4a5 (patch)
treebd5e0a090bfdbacfc4dac2ea76207a28bbc58b12 /src/server/game
parent3bba97dd528acd539649b514152dd06f7789cbc1 (diff)
Core/Networking: Fixed Socket::DelayedCloseSocket not working if write queue is empty when its called on linux and mac
Closes #29887 (cherry picked from commit f847cd4eeb8ce0d537ef793d8926cf28650724c4)
Diffstat (limited to 'src/server/game')
-rw-r--r--src/server/game/Server/WorldSocket.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/game/Server/WorldSocket.cpp b/src/server/game/Server/WorldSocket.cpp
index d4317cf5e14..7a3a1841853 100644
--- a/src/server/game/Server/WorldSocket.cpp
+++ b/src/server/game/Server/WorldSocket.cpp
@@ -724,6 +724,7 @@ void WorldSocket::HandleAuthSessionCallback(std::shared_ptr<WorldPackets::Auth::
// Check that Key and account name are the same on client and server
if (memcmp(hmac.GetDigest().data(), authSession->Digest.data(), authSession->Digest.size()) != 0)
{
+ SendAuthResponseError(ERROR_DENIED);
TC_LOG_ERROR("network", "WorldSocket::HandleAuthSession: Authentication failed for account: {} ('{}') address: {}", account.Game.Id, authSession->RealmJoinTicket, address);
DelayedCloseSocket();
return;