mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 19:02:34 +01:00
mpdu: Fix invalid read
The cast was being done incorrectly resulting in invalid values being obtained
This commit is contained in:
parent
ca742bb95d
commit
3ef0ff1e1a
@ -46,7 +46,7 @@ static inline bool next_2bytes(const unsigned char *mpdu, int len,
|
|||||||
if (len < *offset + 2)
|
if (len < *offset + 2)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
*holder = L_LE16_TO_CPU(*((uint16_t *) mpdu + *offset));
|
*holder = L_LE16_TO_CPU(*(uint16_t *)(mpdu + *offset));
|
||||||
*offset = *offset + 2;
|
*offset = *offset + 2;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user