From ec633b26dc6c3811b2e2bdb90992d104772af320 Mon Sep 17 00:00:00 2001 From: Karsten Sperling Date: Wed, 24 Jul 2024 12:28:46 +1200 Subject: [PATCH] Return error from AdvertiseOperational when fabric table is null --- src/app/server/Dnssd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/server/Dnssd.cpp b/src/app/server/Dnssd.cpp index 2fc56614e3ab9e..d3de7044bbda8b 100644 --- a/src/app/server/Dnssd.cpp +++ b/src/app/server/Dnssd.cpp @@ -188,7 +188,7 @@ void DnssdServer::GetPrimaryOrFallbackMACAddress(chip::MutableByteSpan mac) /// Set MDNS operational advertisement CHIP_ERROR DnssdServer::AdvertiseOperational() { - VerifyOrDie(mFabricTable != nullptr); + VerifyOrReturnError(mFabricTable != nullptr, CHIP_ERROR_INCORRECT_STATE); for (const FabricInfo & fabricInfo : *mFabricTable) {