Skip to content

Commit

Permalink
Update src/app/icd/ICDHandler.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Jean-Francois Penven <[email protected]>
  • Loading branch information
thivya-amazon and jepenven-silabs authored Nov 30, 2023
1 parent 14bf5be commit a0d4ac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/icd/ICDHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ CHIP_ERROR CheckInMessageHandler::OnMessageReceived(Messaging::ExchangeContext *
Crypto::Aes128KeyHandle key;
chip::Protocols::SecureChannel::CounterType counter;
MutableByteSpan appData;
uint8_t checkInPayload[chip::Protocols::SecureChannel::CheckinMessage::sMinPayloadSize];
ByteSpan payloadByteSpan{ payload->Start(), payload->DataLength() };
memcpy(&checkInPayload, payload->Start(), sizeof(checkInPayload));
chip::ByteSpan payloadByteSpan(checkInPayload);
chip::Protocols::SecureChannel::CheckinMessage::ParseCheckinMessagePayload(key, payloadByteSpan, counter, appData);
Expand Down

0 comments on commit a0d4ac0

Please sign in to comment.