[meshcop] verify border agent address is rloc (#3100)

This commit is contained in:
Yakun Xu
2018-09-26 07:23:12 -10:00
committed by Jonathan Hui
parent 2ce47a8e9c
commit 125991b566
+1
View File
@@ -85,6 +85,7 @@ void Leader::HandlePetition(Coap::Header &aHeader, Message &aMessage, const Ip6:
otLogInfoMeshCoP(GetInstance(), "received petition");
VerifyOrExit(GetNetif().GetMle().IsRoutingLocator(aMessageInfo.GetPeerAddr()));
SuccessOrExit(Tlv::GetTlv(aMessage, Tlv::kCommissionerId, sizeof(commissionerId), commissionerId));
VerifyOrExit(commissionerId.IsValid());