mirror of
https://github.com/espressif/openthread.git
synced 2026-08-11 13:17:48 +00:00
Return error if message buffer allocation fails. (#768)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user