Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit 0cda126

Browse files
committed
Fix for resumption message id valid tag.
1 parent cb24fe7 commit 0cda126

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib/core/WeaveFabricState.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -735,15 +735,15 @@ WEAVE_ERROR WeaveFabricState::SuspendSession(uint16_t keyId, uint64_t peerNodeId
735735
ExitNow(err = WEAVE_ERROR_UNSUPPORTED_ENCRYPTION_TYPE);
736736
}
737737
738+
err = writer.PutBoolean(ContextTag(kTag_SerializedSession_AreResumptionMsgIdsValid),
739+
sessionKey->AreResumptionMsgIdsValid());
740+
SuccessOrExit(err);
741+
738742
if (sessionKey->AreResumptionMsgIdsValid())
739743
{
740744
// Generate a new set of resumption msg ids
741745
sessionKey->ComputeNextResumptionMsgIds();
742746
743-
err = writer.PutBoolean(ContextTag(kTag_SerializedSession_AreResumptionMsgIdsValid),
744-
sessionKey->AreResumptionMsgIdsValid());
745-
SuccessOrExit(err);
746-
747747
err = writer.Put(ContextTag(kTag_SerializedSession_ResumptionSendMessageId),
748748
sessionKey->ResumptionSendMsgId);
749749
SuccessOrExit(err);

0 commit comments

Comments
 (0)