commit d5770368792a7f2c012df1ed7c9881076268b830
parent 6ee83fdca9cc61862a8ac691c11cfa4a5d1a3bf2
Author: Andrew Zaborowski <andrew.zaborowski@intel.com>
Date: Thu, 24 Oct 2019 06:30:00 +0200
p2putils: Fix length in Channel List parsing
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/p2putil.c b/src/p2putil.c
@@ -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;