mirror of
https://github.com/espressif/openthread.git
synced 2026-09-21 00:17:37 +00:00
Check return on call to Prepend(). (#1019)
This commit is contained in:
@@ -211,7 +211,7 @@ ThreadError Ip6::InsertMplOption(Message &aMessage, Header &aIp6Header, MessageI
|
||||
aMessage.Write(0, sizeof(hbh), &hbh);
|
||||
|
||||
// make space for MPL Option + padding by shifting hop-by-hop option header
|
||||
aMessage.Prepend(NULL, 8);
|
||||
SuccessOrExit(error = aMessage.Prepend(NULL, 8));
|
||||
aMessage.CopyTo(8, 0, hbhLength, aMessage);
|
||||
|
||||
// insert MPL Option
|
||||
|
||||
Reference in New Issue
Block a user