3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-26 18:59:22 +01:00

p2putils: Fix length in Channel List parsing

This commit is contained in:
Andrew Zaborowski 2019-10-24 06:30:00 +02:00 committed by Denis Kenzior
parent 6ee83fdca9
commit d577036879

View File

@ -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); l_queue_push_tail(out->channel_entries, entries);
attr += entries->n_channels; attr += entries->n_channels;
len -= entries->n_channels; len -= 2 + entries->n_channels;
} }
return true; return true;