diff --git a/src/server/game/Server/WorldSocket.cpp b/src/server/game/Server/WorldSocket.cpp index ac0fc53729..81525cccb8 100644 --- a/src/server/game/Server/WorldSocket.cpp +++ b/src/server/game/Server/WorldSocket.cpp @@ -352,7 +352,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()); @@ -374,7 +374,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());