mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-14 16:09:24 +01:00
mpdu: Update offset for authentication frames
Offset was not updated properly when validating authentication frames
This commit is contained in:
parent
a83dc52d50
commit
c3aef948db
@ -54,6 +54,8 @@ static bool validate_authentication_mgmt_mpdu(const struct mpdu *mpdu,
|
|||||||
if (len < *offset + 6)
|
if (len < *offset + 6)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
*offset += 6;
|
||||||
|
|
||||||
switch (mpdu->auth.algorithm) {
|
switch (mpdu->auth.algorithm) {
|
||||||
case MPDU_AUTH_ALGO_OPEN_SYSTEM:
|
case MPDU_AUTH_ALGO_OPEN_SYSTEM:
|
||||||
return *offset <= len;
|
return *offset <= len;
|
||||||
|
Loading…
Reference in New Issue
Block a user