Skip to content

Commit

Permalink
Fix sizing on thread data set (project-chip#13662) (project-chip#15176)
Browse files Browse the repository at this point in the history
(cherry picked from commit ffd25d8)

Co-authored-by: C Freeman <[email protected]>
  • Loading branch information
mspang and cecille authored Feb 15, 2022
1 parent 92f274d commit 0a658b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/AutoCommissioner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ CHIP_ERROR AutoCommissioner::SetCommissioningParameters(const CommissioningParam
if (params.HasThreadOperationalDataset())
{
ByteSpan dataset = params.GetThreadOperationalDataset().Value();
if (dataset.size() > CommissioningParameters::kMaxCredentialsLen)
if (dataset.size() > CommissioningParameters::kMaxThreadDatasetLen)
{
return CHIP_ERROR_INVALID_ARGUMENT;
}
Expand Down

0 comments on commit 0a658b3

Please sign in to comment.