Skip to content

Commit ec633b2

Browse files
Return error from AdvertiseOperational when fabric table is null
1 parent 5d42735 commit ec633b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/server/Dnssd.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ void DnssdServer::GetPrimaryOrFallbackMACAddress(chip::MutableByteSpan mac)
188188
/// Set MDNS operational advertisement
189189
CHIP_ERROR DnssdServer::AdvertiseOperational()
190190
{
191-
VerifyOrDie(mFabricTable != nullptr);
191+
VerifyOrReturnError(mFabricTable != nullptr, CHIP_ERROR_INCORRECT_STATE);
192192

193193
for (const FabricInfo & fabricInfo : *mFabricTable)
194194
{

0 commit comments

Comments
 (0)