[network-data] add source address of SVR_DATA.ntf check (#4602)

This commit is contained in:
Simon Lin
2020-03-02 22:39:34 -08:00
committed by GitHub
parent fc6ca182d3
commit 150aa9b6db
@@ -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());