Core/Authserver: Fixed crash happening when sending packets larger than 4096 bytes (giant realmlist basically)

Closes #23597
This commit is contained in:
Shauren
2019-07-15 22:28:10 +02:00
parent 01124c6f4e
commit c278044739

View File

@@ -271,7 +271,7 @@ void AuthSession::SendPacket(ByteBuffer& packet)
if (!packet.empty())
{
MessageBuffer buffer;
MessageBuffer buffer(packet.size());
buffer.Write(packet.contents(), packet.size());
QueuePacket(std::move(buffer));
}