mirror of https://github.com/Icinga/icinga2.git
Fix crash in ClusterComponent::CheckAuthorityHandler.
This commit is contained in:
parent
91aad7c997
commit
5cdf08c371
|
@ -1153,6 +1153,9 @@ void ClusterComponent::CheckAuthorityHandler(const DynamicObject::Ptr& object, c
|
|||
endpoints.push_back(endpoint->GetName());
|
||||
}
|
||||
|
||||
if (endpoints.empty())
|
||||
return;
|
||||
|
||||
std::sort(endpoints.begin(), endpoints.end());
|
||||
|
||||
String key = object->GetType()->GetName() + "\t" + object->GetName();
|
||||
|
|
Loading…
Reference in New Issue