From: Gunnar Beutner Date: Fri, 7 Sep 2012 07:48:57 +0000 (+0200) Subject: Fixed crash in Endpoint::GetAddress(). X-Git-Tag: v0.0.1~110 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3d95a41813cc1981956b674e488c98e5592b7dc;p=icinga2 Fixed crash in Endpoint::GetAddress(). --- diff --git a/icinga/endpoint.cpp b/icinga/endpoint.cpp index 701a240ca..9e0148dbd 100644 --- a/icinga/endpoint.cpp +++ b/icinga/endpoint.cpp @@ -105,7 +105,7 @@ String Endpoint::GetAddress(void) const } else { JsonRpcClient::Ptr client = GetClient(); - if (!client) + if (!client || !client->IsConnected()) return ""; return client->GetPeerAddress();