3
0
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:
Denis Kenzior 2015-01-21 14:24:24 -06:00
parent a83dc52d50
commit c3aef948db

View File

@ -54,6 +54,8 @@ static bool validate_authentication_mgmt_mpdu(const struct mpdu *mpdu,
if (len < *offset + 6)
return false;
*offset += 6;
switch (mpdu->auth.algorithm) {
case MPDU_AUTH_ALGO_OPEN_SYSTEM:
return *offset <= len;