mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-02-08 13:24:09 +01:00
mpdu: Fix error
src/mpdu.c: In function ‘mpdu_validate’: src/mpdu.c:180:9: error: ‘mmpdu’ may be used uninitialized in this function [-Werror=maybe-uninitialized] mmpdu = (const struct mmpdu_header *) mmpdu; ^
This commit is contained in:
parent
ba54fded0b
commit
023ba1ea32
@ -177,7 +177,7 @@ const struct mmpdu_header *mpdu_validate(const uint8_t *frame, int len)
|
|||||||
|
|
||||||
switch (fc->type) {
|
switch (fc->type) {
|
||||||
case MPDU_TYPE_MANAGEMENT:
|
case MPDU_TYPE_MANAGEMENT:
|
||||||
mmpdu = (const struct mmpdu_header *) mmpdu;
|
mmpdu = (const struct mmpdu_header *) frame;
|
||||||
|
|
||||||
if (validate_mgmt_mpdu(mmpdu, len, &offset))
|
if (validate_mgmt_mpdu(mmpdu, len, &offset))
|
||||||
return mmpdu;
|
return mmpdu;
|
||||||
|
Loading…
Reference in New Issue
Block a user