Skip to content

Commit

Permalink
Return error from AdvertiseOperational when fabric table is null
Browse files Browse the repository at this point in the history
  • Loading branch information
ksperling-apple committed Jul 24, 2024
1 parent 5d42735 commit ec633b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/server/Dnssd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit ec633b2

Please sign in to comment.