diff options
author | Brian Gix <brian.gix@intel.com> | 2020-07-15 08:30:49 -0700 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2020-07-16 09:58:30 -0700 |
commit | 192fb067986067c890a2e827292e021a62fc8d4b (patch) | |
tree | df2276e5df545b726f681577b0be4607b245138b /mesh/node.c | |
parent | b7002801ffa59b75f5fc21d0f72279cf9082ecbe (diff) | |
download | bluez-192fb067986067c890a2e827292e021a62fc8d4b.tar.gz |
mesh: Fix node composition change detection
This fixes a bug that caused disallowed composition changes from being
detected and rejected. The only fields that are allowed to freely change
are CID, PID, VID and CRPL.
Diffstat (limited to 'mesh/node.c')
-rw-r--r-- | mesh/node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesh/node.c b/mesh/node.c index c61167bda..9b97aa927 100644 --- a/mesh/node.c +++ b/mesh/node.c @@ -1579,7 +1579,7 @@ static bool check_req_node(struct managed_obj_request *req) node = req->node; node_comp = node_get_comp(node, 0, &node_len); - len = node_generate_comp(node, comp, sizeof(comp)); + len = node_generate_comp(req->node, comp, sizeof(comp)); /* If no page 0 exists, save it and return */ if (req->type != REQUEST_TYPE_ATTACH || !node_len || !node_comp) |