-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a startup crash when a node wants to advertise as a commissioner …
…but not as commissionable. (#24565) In DnssdServer::Advertise we were trying to get things like a discriminator and other commissionee information even if we were just advertising as a commissioner (commissionableNode was false). This could lead to crashes due to calling things like GetCommissionableDataProvider() when we are not in fact commissionable and don't have one. The fix is to reorder things a bit so we set up all the advertiseParameters state that both commissioners and commissionable share, and then condition all the commissionable-only bits on commissionableNode.
- Loading branch information
1 parent
a1ba531
commit 2552488
Showing
1 changed file
with
54 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters