mirror of
https://github.com/espressif/openthread.git
synced 2026-08-19 00:49:53 +00:00
fix AddressRegistration issues (#83)
This commit is contained in:
@@ -2768,6 +2768,11 @@ ThreadError MleRouter::AppendChildAddresses(Message &aMessage, Child &aChild)
|
||||
|
||||
for (size_t i = 0; i < sizeof(aChild.mIp6Address) / sizeof(aChild.mIp6Address[0]); i++)
|
||||
{
|
||||
if (aChild.mIp6Address[i].IsUnspecified())
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
if (mNetworkData.GetContext(aChild.mIp6Address[i], context) == kThreadError_None)
|
||||
{
|
||||
// compressed entry
|
||||
|
||||
@@ -1362,7 +1362,7 @@ public:
|
||||
aIndex--;
|
||||
}
|
||||
|
||||
return entry;
|
||||
return (cur < end) ? entry : NULL;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user