mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Core/PacketIO: Require valid WorldSession for CMSG_KEEP_ALIVE
This commit is contained in:
@@ -346,9 +346,12 @@ WorldSocket::ReadDataHandlerResult WorldSocket::ReadDataHandler()
|
||||
sessionGuard.lock();
|
||||
LogOpcodeText(opcode, sessionGuard);
|
||||
if (_worldSession)
|
||||
{
|
||||
_worldSession->ResetTimeOutTime(true);
|
||||
return ReadDataHandlerResult::Ok;
|
||||
|
||||
return ReadDataHandlerResult::Ok;
|
||||
}
|
||||
TC_LOG_ERROR("network", "WorldSocket::ReadDataHandler: client %s sent CMSG_KEEP_ALIVE without being authenticated", GetRemoteIpAddress().to_string().c_str());
|
||||
return ReadDataHandlerResult::Error;
|
||||
case CMSG_TIME_SYNC_RESP:
|
||||
packetToQueue = new WorldPacket(std::move(packet), std::chrono::steady_clock::now());
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user