Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for minimal mDNS 'No Memory' error (#7356)
Browse files Browse the repository at this point in the history
sweetymhaiske authored and pull[bot] committed Aug 21, 2021

Verified

This commit was signed with the committer’s verified signature. The key has expired.
adlrocha adlrocha
1 parent 6ec7c8e commit 1030500
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/mdns/Advertiser_ImplMinimalMdns.cpp
Original file line number Diff line number Diff line change
@@ -300,6 +300,7 @@ void AdvertiserMinMdns::Clear()

CHIP_ERROR AdvertiserMinMdns::Advertise(const OperationalAdvertisingParameters & params)
{
Clear();
char nameBuffer[64] = "";

/// need to set server name
@@ -363,6 +364,7 @@ CHIP_ERROR AdvertiserMinMdns::Advertise(const OperationalAdvertisingParameters &

CHIP_ERROR AdvertiserMinMdns::Advertise(const CommissionAdvertisingParameters & params)
{
Clear();
// TODO: need to detect colisions here
char nameBuffer[64] = "";
size_t len = snprintf(nameBuffer, sizeof(nameBuffer), ChipLogFormatX64, GetRandU32(), GetRandU32());

0 comments on commit 1030500

Please sign in to comment.