mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 10:39:23 +01:00
p2putils: Fix length in Channel List parsing
This commit is contained in:
parent
6ee83fdca9
commit
d577036879
@ -219,7 +219,7 @@ static bool extract_p2p_channel_list(const uint8_t *attr, size_t len,
|
||||
l_queue_push_tail(out->channel_entries, entries);
|
||||
|
||||
attr += entries->n_channels;
|
||||
len -= entries->n_channels;
|
||||
len -= 2 + entries->n_channels;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user