[mle] fix incorrect StatusTlv when processing Child Update Response (#7956)

This commit fixes `MleRouter::HandleChildUpdateResponse()` to use the
MLE `StatusTlv` instead of `ThreadStatusTlv` when parsing a received
MLE Child Update Response (from a child).
This commit is contained in:
Abtin Keshavarzian
2022-07-28 16:46:54 -07:00
committed by GitHub
parent 0b1e922a1d
commit 747a0a8069
+1 -1
View File
@@ -2771,7 +2771,7 @@ void MleRouter::HandleChildUpdateResponse(RxInfo &aRxInfo)
}
// Status
switch (Tlv::Find<ThreadStatusTlv>(aRxInfo.mMessage, status))
switch (Tlv::Find<StatusTlv>(aRxInfo.mMessage, status))
{
case kErrorNone:
VerifyOrExit(status != StatusTlv::kError, RemoveNeighbor(*child));