diff options
author | Inga Stotland <inga.stotland@intel.com> | 2020-08-12 22:01:50 -0700 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2020-08-13 15:07:01 -0700 |
commit | 602e4c0ff962a5b72523d9bd00332b7f5be5c48c (patch) | |
tree | 300c53cf607f6017d2a503f2ebbaca3bf3f651e5 /mesh/node.c | |
parent | 2614f2b7324bb9a3b0fa727a2ce2d86340a32a47 (diff) | |
download | bluez-602e4c0ff962a5b72523d9bd00332b7f5be5c48c.tar.gz |
mesh: Don't add config server when loading from storage
Adding a sonfig server model when loading from storage is unnecessary,
since the daemon-generated stored configuration always contains
config server model.
This also fixes a memory leak caused by bad parameters passed to
mesh_model_add()
Diffstat (limited to 'mesh/node.c')
-rw-r--r-- | mesh/node.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/mesh/node.c b/mesh/node.c index 4b70587ae..1eeffeb8b 100644 --- a/mesh/node.c +++ b/mesh/node.c @@ -353,9 +353,6 @@ static bool add_elements_from_storage(struct mesh_node *node, if (!add_element_from_storage(node, entry->data)) return false; - /* Add configuration server model on the primary element */ - mesh_model_add(node, PRIMARY_ELE_IDX, CONFIG_SRV_MODEL, NULL); - return true; } |