mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 10:56:38 +01:00
Core/PacketIO: ported a refactor that was sneaked into e59eef5432
This commit is contained in:
@@ -151,7 +151,7 @@ void WorldSocket::InitializeHandler(boost::system::error_code const& error, std:
|
||||
try
|
||||
{
|
||||
ByteBuffer buffer(std::move(_packetBuffer));
|
||||
std::string initializer = buffer.ReadString(ClientConnectionInitialize.length());
|
||||
std::string initializer(buffer.ReadString(ClientConnectionInitialize.length()));
|
||||
if (initializer != ClientConnectionInitialize)
|
||||
{
|
||||
CloseSocket();
|
||||
|
||||
Reference in New Issue
Block a user