mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Merge pull request #11580 from Dehravor/warden
Core/Warden: Fix crash Fix NULL dereference crash in case Warden is disabled (in configs or on Mac OS X platform) and client sends a CMSG_WARDEN_DATA opcode
This commit is contained in:
@@ -223,6 +223,9 @@ std::string Warden::Penalty(WardenCheck* check /*= NULL*/)
|
||||
|
||||
void WorldSession::HandleWardenDataOpcode(WorldPacket& recvData)
|
||||
{
|
||||
if (!_warden)
|
||||
return;
|
||||
|
||||
_warden->DecryptData(recvData.contents(), recvData.size());
|
||||
uint8 opcode;
|
||||
recvData >> opcode;
|
||||
|
||||
Reference in New Issue
Block a user