From: Gunnar Beutner Date: Wed, 9 May 2012 12:10:14 +0000 (+0200) Subject: Crash fix. X-Git-Tag: v0.0.1~538 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b86c7f35f807dedf5b5c01d5c254d2446fffdbe;p=icinga2 Crash fix. --- diff --git a/components/discovery/discoverycomponent.cpp b/components/discovery/discoverycomponent.cpp index 9f85a31dc..bd1f3e1bf 100644 --- a/components/discovery/discoverycomponent.cpp +++ b/components/discovery/discoverycomponent.cpp @@ -590,7 +590,7 @@ int DiscoveryComponent::DiscoveryTimerHandler(const TimerEventArgs& tea) if (IsBroker()) { /* send discovery message to all connected components to refresh their TTL for this component */ - SendDiscoveryMessage("discovery::NewComponent", i->first, Endpoint::Ptr()); + SendDiscoveryMessage("discovery::NewComponent", identity, Endpoint::Ptr()); } Endpoint::Ptr endpoint = endpointManager->GetEndpointByIdentity(identity);