]> granicus.if.org Git - icinga2/commitdiff
Fix missing object lock in ExternalCommandProcessor::RemoveSvcAcknowledgement().
authorMichael Friedrich <Michael.Friedrich@netways.de>
Fri, 18 Oct 2013 22:17:28 +0000 (00:17 +0200)
committerMichael Friedrich <Michael.Friedrich@netways.de>
Fri, 18 Oct 2013 22:17:28 +0000 (00:17 +0200)
lib/icinga/externalcommandprocessor.cpp

index 49bdd1d81ff78188334655e82475802da6ab21bd..de7345a93f43bfd42574394c57cba2e2d3640e1a 100644 (file)
@@ -632,6 +632,7 @@ void ExternalCommandProcessor::RemoveSvcAcknowledgement(double, const std::vecto
 
        Log(LogInformation, "icinga", "Removing acknowledgement for service '" + service->GetName() + "'");
 
+       ObjectLock olock(service);
        service->ClearAcknowledgement();
 }