Skip to content

Commit

Permalink
Fix sizing on thread data set (project-chip#13662)
Browse files Browse the repository at this point in the history
  • Loading branch information
cecille authored and selissia committed Jan 28, 2022
1 parent 5fc3468 commit 35e4278
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 35e4278

Please sign in to comment.