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
1 changed files with 1 additions and 1 deletions

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);
attr += entries->n_channels;
len -= entries->n_channels;
len -= 2 + entries->n_channels;
}
return true;