mirror of
https://github.com/espressif/openthread.git
synced 2026-08-07 03:07:47 +00:00
[network-data] add source address of SVR_DATA.ntf check (#4602)
This commit is contained in:
@@ -152,6 +152,8 @@ void Leader::HandleServerData(Coap::Message &aMessage, const Ip6::MessageInfo &a
|
||||
|
||||
otLogInfoNetData("Received network data registration");
|
||||
|
||||
VerifyOrExit(aMessageInfo.GetPeerAddr().IsRoutingLocator());
|
||||
|
||||
if (ThreadTlv::GetTlv(aMessage, ThreadTlv::kRloc16, sizeof(rloc16), rloc16) == OT_ERROR_NONE)
|
||||
{
|
||||
VerifyOrExit(rloc16.IsValid());
|
||||
|
||||
Reference in New Issue
Block a user