mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-15 16:24:28 +08:00
mesh: Clear prov capabilities structure before reading
Capabilities need to be zero'd before realtime reading fresh values, because they are mostly bitmasks, which are set when capabilities are detected, and never otherwise cleared.
This commit is contained in:
parent
96c50477ba
commit
3eaf2f114d
@ -165,6 +165,8 @@ static void parse_properties(struct mesh_agent *agent,
|
||||
const char *key, *uri_string;
|
||||
struct l_dbus_message_iter variant;
|
||||
|
||||
memset(&agent->caps, 0, sizeof(agent->caps));
|
||||
|
||||
while (l_dbus_message_iter_next_entry(properties, &key, &variant)) {
|
||||
if (!strcmp(key, "Capabilities")) {
|
||||
parse_prov_caps(&agent->caps, &variant);
|
||||
|
Loading…
Reference in New Issue
Block a user