mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
Fixed crash in Endpoint::GetAddress().
This commit is contained in:
parent
34a8703187
commit
e3d95a4181
@ -105,7 +105,7 @@ String Endpoint::GetAddress(void) const
|
||||
} else {
|
||||
JsonRpcClient::Ptr client = GetClient();
|
||||
|
||||
if (!client)
|
||||
if (!client || !client->IsConnected())
|
||||
return "<disconnected endpoint>";
|
||||
|
||||
return client->GetPeerAddress();
|
||||
|
Loading…
x
Reference in New Issue
Block a user