mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-01 07:26:36 +00:00
Add some pointer safety checks to underlying data service call [skip ci]
This commit is contained in:
@@ -32,6 +32,10 @@ void callGetZoneList(Json::Value &response)
|
||||
for (auto &zone : zoneserver_list.getZoneServerList()) {
|
||||
Json::Value row;
|
||||
|
||||
if (!zone->IsConnected()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
row["booting_up"] = zone->IsBootingUp();
|
||||
row["client_address"] = zone->GetCAddress();
|
||||
row["client_local_address"] = zone->GetCLocalAddress();
|
||||
|
||||
Reference in New Issue
Block a user