[mle] use operator when comparing Extended PAN IDs (#4669)

This commit is contained in:
Abtin Keshavarzian
2020-03-11 15:03:41 -07:00
committed by GitHub
parent c77342e5cc
commit 587cb7fb30
+1 -1
View File
@@ -2786,7 +2786,7 @@ otError MleRouter::HandleDiscoveryRequest(const Message &aMessage, const Ip6::Me
case MeshCoP::Tlv::kExtendedPanId:
aMessage.Read(offset, sizeof(extPanId), &extPanId);
VerifyOrExit(extPanId.IsValid(), error = OT_ERROR_PARSE);
VerifyOrExit(memcmp(&Get<Mac::Mac>().GetExtendedPanId(), &extPanId.GetExtendedPanId(), OT_EXT_PAN_ID_SIZE));
VerifyOrExit(Get<Mac::Mac>().GetExtendedPanId() != extPanId.GetExtendedPanId());
break;