fix AddressRegistration issues (#83)

This commit is contained in:
rongli
2016-05-27 11:11:52 -07:00
committed by Jonathan Hui
parent 7d2e4a0267
commit 0e432396d6
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -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
+1 -1
View File
@@ -1362,7 +1362,7 @@ public:
aIndex--;
}
return entry;
return (cur < end) ? entry : NULL;
}
private: