mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Core/WorldSocket: Handle unhandled exceptions
Properly handle unhandled exceptions happening with malformed packets. Fix #19128
This commit is contained in:
@@ -324,7 +324,7 @@ WorldSocket::ReadDataHandlerResult WorldSocket::ReadDataHandler()
|
||||
{
|
||||
return HandlePing(packet) ? ReadDataHandlerResult::Ok : ReadDataHandlerResult::Error;
|
||||
}
|
||||
catch (ByteBufferPositionException const&)
|
||||
catch (ByteBufferException const&)
|
||||
{
|
||||
}
|
||||
TC_LOG_ERROR("network", "WorldSocket::ReadDataHandler(): client %s sent malformed CMSG_PING", GetRemoteIpAddress().to_string().c_str());
|
||||
@@ -346,7 +346,7 @@ WorldSocket::ReadDataHandlerResult WorldSocket::ReadDataHandler()
|
||||
HandleAuthSession(packet);
|
||||
return ReadDataHandlerResult::WaitingForQuery;
|
||||
}
|
||||
catch (ByteBufferPositionException const&)
|
||||
catch (ByteBufferException const&)
|
||||
{
|
||||
}
|
||||
TC_LOG_ERROR("network", "WorldSocket::ReadDataHandler(): client %s sent malformed CMSG_AUTH_SESSION", GetRemoteIpAddress().to_string().c_str());
|
||||
|
||||
Reference in New Issue
Block a user