mirror of
https://github.com/espressif/openthread.git
synced 2026-07-27 22:37:45 +00:00
[plat-utils] enhance otMacFrameDoesAddrMatch() (#9997)
This commit updates `otMacFrameDoesAddrMatch()` to ensure it does not match if frame is malformed (`Frame::GetDstAddr()` fails).
This commit is contained in:
@@ -43,7 +43,7 @@ bool otMacFrameDoesAddrMatch(const otRadioFrame *aFrame,
|
||||
Mac::Address dst;
|
||||
Mac::PanId panid;
|
||||
|
||||
SuccessOrExit(frame.GetDstAddr(dst));
|
||||
VerifyOrExit(frame.GetDstAddr(dst) == kErrorNone, rval = false);
|
||||
|
||||
switch (dst.GetType())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user