Skip to content

Commit

Permalink
[mesh-diag] fix initializing of mEndOffset in ChildIterator
Browse files Browse the repository at this point in the history
  • Loading branch information
abtink committed Jun 13, 2023
1 parent d56059e commit 896305f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/utils/mesh_diag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ Error MeshDiag::ChildIterator::InitFrom(const Message &aMessage, uint16_t aParen
{
Error error;

SuccessOrExit(error = Tlv::FindTlvValueStartEndOffsets(aMessage, ChildTableTlv::kType, mCurOffset, mCurOffset));
SuccessOrExit(error = Tlv::FindTlvValueStartEndOffsets(aMessage, ChildTableTlv::kType, mCurOffset, mEndOffset));
mMessage = &aMessage;
mParentRloc16 = aParentRloc16;

Expand Down

0 comments on commit 896305f

Please sign in to comment.