mirror of
https://github.com/espressif/openthread.git
synced 2026-08-17 07:59:51 +00:00
[mac] validate received ack frame PSDU in ProcessEnhAckSecurity() (#9565)
This commit is contained in:
@@ -1659,6 +1659,8 @@ Error Mac::ProcessEnhAckSecurity(TxFrame &aTxFrame, RxFrame &aAckFrame)
|
||||
VerifyOrExit(aAckFrame.GetSecurityEnabled(), error = kErrorNone);
|
||||
VerifyOrExit(aAckFrame.IsVersion2015());
|
||||
|
||||
SuccessOrExit(aAckFrame.ValidatePsdu());
|
||||
|
||||
IgnoreError(aAckFrame.GetSecurityLevel(securityLevel));
|
||||
VerifyOrExit(securityLevel == Frame::kSecurityEncMic32);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user