From e109b99a7f2053d7ccd1a7e7ba2738ca80ffbb57 Mon Sep 17 00:00:00 2001 From: Alexander D'abreu Date: Mon, 28 Mar 2022 15:38:38 +0000 Subject: [PATCH] Resolve default countryCodeSize when not set on commissioner --- src/controller/CHIPDeviceController.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controller/CHIPDeviceController.cpp b/src/controller/CHIPDeviceController.cpp index 8b8a168a134288..72cbb00bac1e32 100644 --- a/src/controller/CHIPDeviceController.cpp +++ b/src/controller/CHIPDeviceController.cpp @@ -1719,6 +1719,7 @@ void DeviceCommissioner::PerformCommissioningStep(DeviceProxy * proxy, Commissio #endif if (status != CHIP_NO_ERROR) { + actualCountryCodeSize = 2; ChipLogError(Controller, "Unable to find country code, defaulting to XX"); } chip::CharSpan countryCode(countryCodeStr, actualCountryCodeSize);