From 35e427853cd763a40035dd2c5e0ca896493cf7c0 Mon Sep 17 00:00:00 2001 From: C Freeman Date: Wed, 19 Jan 2022 14:07:12 -0500 Subject: [PATCH] Fix sizing on thread data set (#13662) --- src/controller/AutoCommissioner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller/AutoCommissioner.cpp b/src/controller/AutoCommissioner.cpp index 78daa9e8218966..8c86730d8bddde 100644 --- a/src/controller/AutoCommissioner.cpp +++ b/src/controller/AutoCommissioner.cpp @@ -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; }