Return error if message buffer allocation fails. (#768)

This commit is contained in:
Jonathan Hui
2016-10-07 15:51:20 -07:00
committed by GitHub
parent 176325b5a6
commit aeee0b9b1a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1432,7 +1432,7 @@ ThreadError Mle::SendMessage(Message &aMessage, const Ip6::Address &aDestination
tagLength = sizeof(tag);
aesCcm.Finalize(tag, &tagLength);
SuccessOrExit(aMessage.Append(tag, tagLength));
SuccessOrExit(error = aMessage.Append(tag, tagLength));
mKeyManager.IncrementMleFrameCounter();
}