[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:
Abtin Keshavarzian
2024-04-05 11:18:41 -07:00
committed by GitHub
parent e3f97e2362
commit b146766e3a
+1 -1
View File
@@ -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())
{