mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 23:09:34 +01:00
rrm: relax Reporting Detail subelement length check
Since Reporting Detail subelement is listed as 'extensible', make sure that the length check is not overly restrictive. We only interpret the first field.
This commit is contained in:
parent
42ab82c20c
commit
ae0ee89d72
@ -570,7 +570,7 @@ static void rrm_handle_beacon_request(struct rrm_state *rrm,
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
case RRM_BEACON_REQ_SUBELEM_ID_REPORTING_DETAIL:
|
case RRM_BEACON_REQ_SUBELEM_ID_REPORTING_DETAIL:
|
||||||
if (length != 1) {
|
if (length < 1) {
|
||||||
l_error("Invalid length in reporting detail");
|
l_error("Invalid length in reporting detail");
|
||||||
goto reject_refused;
|
goto reject_refused;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user