[mle] fix max response Tlvs limitation issue in HandleChildUpdateRequest() (#2213)

This commit is contained in:
Shu Chen
2017-09-21 08:46:03 -07:00
committed by Jonathan Hui
parent aa811d0aac
commit 63a0654eef
+1 -1
View File
@@ -2273,7 +2273,7 @@ otError MleRouter::HandleChildUpdateRequest(const Message &aMessage, const Ip6::
uint8_t tlv;
TlvRequestIterator iterator = TLVREQUESTTLV_ITERATOR_INIT;
VerifyOrExit(tlvRequest.IsValid() && tlvRequest.GetLength() <= (Child::kMaxRequestTlvs - tlvslength),
VerifyOrExit(tlvRequest.IsValid() && tlvRequest.GetLength() <= (kMaxResponseTlvs - tlvslength),
error = OT_ERROR_PARSE);
while (tlvRequest.GetNextTlv(iterator, tlv) == OT_ERROR_NONE)