mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-31 01:24:19 +02:00
Fix another null pointer deref in GraphiteWriter::SendPerfdata
refs #7268
This commit is contained in:
parent
321809bea8
commit
bb4c4cb952
@ -136,6 +136,9 @@ void GraphiteWriter::SendPerfdata(const String& prefix, const CheckResult::Ptr&
|
||||
{
|
||||
Array::Ptr perfdata = cr->GetPerformanceData();
|
||||
|
||||
if (!perfdata)
|
||||
return;
|
||||
|
||||
ObjectLock olock(perfdata);
|
||||
BOOST_FOREACH(const Value& val, perfdata) {
|
||||
PerfdataValue::Ptr pdv;
|
||||
|
Loading…
x
Reference in New Issue
Block a user