mirror of
https://github.com/espressif/openthread.git
synced 2026-07-27 22:37:45 +00:00
[mpl] discard datagrams with multiple MPL Options (#3764)
Credit to OSS-Fuzz.
This commit is contained in:
@@ -358,6 +358,9 @@ otError Ip6::RemoveMplOption(Message &aMessage)
|
||||
switch (option.GetType())
|
||||
{
|
||||
case OptionMpl::kType:
|
||||
// if multiple MPL options exist, discard packet
|
||||
VerifyOrExit(mplOffset == 0, error = OT_ERROR_PARSE);
|
||||
|
||||
mplOffset = offset;
|
||||
mplLength = option.GetLength();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user