Check return on call to Prepend(). (#1019)

This commit is contained in:
Jonathan Hui
2016-11-29 12:32:40 -08:00
committed by GitHub
parent 23feac4336
commit 41aea308d0
+1 -1
View File
@@ -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