Skip to content

Commit

Permalink
IcingaDB#SendConfigDelete(): fix missing nullptr check before deref
Browse files Browse the repository at this point in the history
  • Loading branch information
Al2Klimov committed Dec 20, 2023
1 parent 8739881 commit b2d975f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/icingadb/icingadb-objects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1570,6 +1570,9 @@ IcingaDB::CreateConfigUpdate(const ConfigObject::Ptr& object, const String typeN

void IcingaDB::SendConfigDelete(const ConfigObject::Ptr& object)
{
if (!m_Rcon || !m_Rcon->IsConnected())
return;

Type::Ptr type = object->GetReflectionType();
String typeName = type->GetName().ToLower();
String objectKey = GetObjectIdentifier(object);
Expand Down

0 comments on commit b2d975f

Please sign in to comment.