mpdu: Validate action frame minimum length

Action frames must at least have the Category byte
This commit is contained in:
Andrew Zaborowski 2019-07-08 18:59:32 +02:00 committed by Denis Kenzior
parent 3bd265e02f
commit 5a40c49c44
1 changed files with 1 additions and 1 deletions

View File

@ -587,7 +587,7 @@ static bool validate_mgmt_mpdu(const struct mmpdu_header *mpdu, int len,
return validate_deauthentication_mmpdu(mpdu, len, offset);
case MPDU_MANAGEMENT_SUBTYPE_ACTION:
case MPDU_MANAGEMENT_SUBTYPE_ACTION_NO_ACK:
return true;
return *offset + 1 <= len;
default:
return false;
}