mirror of
https://github.com/espressif/openthread.git
synced 2026-09-04 16:20:05 +00:00
[mle] use operator when comparing Extended PAN IDs (#4669)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user