some fixes (#1793)

This commit is contained in:
Buke Po
2017-05-20 23:06:39 -07:00
committed by Jonathan Hui
parent 5da57a3a8b
commit f7bd4b6bc9
3 changed files with 1 additions and 5 deletions
-1
View File
@@ -622,7 +622,6 @@ void Coap::ProcessReceivedRequest(Header &aHeader, Message &aMessage, const Ip6:
SuccessOrExit(mInterceptor(aMessage, aMessageInfo));
}
SuccessOrExit(aHeader.FromMessage(aMessage, 0));
aMessage.MoveOffset(aHeader.GetLength());
switch (mResponsesQueue.GetMatchedResponseCopy(aHeader, aMessageInfo, &response))
-3
View File
@@ -571,9 +571,6 @@ ThreadError DatasetManager::Set(Coap::Header &aHeader, Message &aMessage, const
memset(&destination, 0, sizeof(destination));
destination = mNetif.GetMle().GetMeshLocal16();
destination.mFields.m16[4] = HostSwap16(0x0000);
destination.mFields.m16[5] = HostSwap16(0x00ff);
destination.mFields.m16[6] = HostSwap16(0xfe00);
destination.mFields.m16[7] = HostSwap16(borderAgentLocator->GetBorderAgentLocator());
mNetif.GetLeader().SendDatasetChanged(destination);
+1 -1
View File
@@ -335,7 +335,7 @@ void Joiner::SendJoinerFinalize(void)
message->GetLength() - header.GetLength());
#endif
mNetif.GetCoapSecure().SendMessage(*message, Joiner::HandleJoinerFinalizeResponse, this);
SuccessOrExit(error = mNetif.GetCoapSecure().SendMessage(*message, Joiner::HandleJoinerFinalizeResponse, this));
otLogInfoMeshCoP(GetInstance(), "Sent joiner finalize");