From a8fe1ac405888a01ae120ee07cfa2fae26437e60 Mon Sep 17 00:00:00 2001 From: James Swan <122404367+swan-amazon@users.noreply.github.com> Date: Tue, 22 Oct 2024 19:58:11 +0000 Subject: [PATCH] --- src/app/server/DefaultTermsAndConditionsProvider.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/server/DefaultTermsAndConditionsProvider.cpp b/src/app/server/DefaultTermsAndConditionsProvider.cpp index 84cbd538f4a3f5..f7ae51234f11a6 100644 --- a/src/app/server/DefaultTermsAndConditionsProvider.cpp +++ b/src/app/server/DefaultTermsAndConditionsProvider.cpp @@ -45,7 +45,7 @@ constexpr size_t kEstimatedTlvBufferSize = chip::TLV::EstimateStructOverhead(siz sizeof(uint16_t), // AcceptedAcknowledgements sizeof(uint16_t) // AcceptedAcknowledgementsVersion ) * - 4 * sizeof(uint16_t); // Extra space for rollback compatibility + 4; // Extra space for rollback compatibility } // namespace CHIP_ERROR chip::app::DefaultTermsAndConditionsStorageDelegate::Init(PersistentStorageDelegate * const inPersistentStorageDelegate) @@ -82,7 +82,7 @@ CHIP_ERROR chip::app::DefaultTermsAndConditionsStorageDelegate::Get(OptionalSyncGetKeyValue(kStorageKey.KeyName(), &buffer, bufferSize); + CHIP_ERROR err = mStorageDelegate->SyncGetKeyValue(kStorageKey.KeyName(), &buffer, bufferSize); if (CHIP_ERROR_PERSISTED_STORAGE_VALUE_NOT_FOUND == err) { outTermsAndConditions.ClearValue();