summaryrefslogtreecommitdiff
path: root/mesh/node.c
diff options
context:
space:
mode:
authorInga Stotland <inga.stotland@intel.com>2020-08-12 22:01:50 -0700
committerBrian Gix <brian.gix@intel.com>2020-08-13 15:07:01 -0700
commit602e4c0ff962a5b72523d9bd00332b7f5be5c48c (patch)
tree300c53cf607f6017d2a503f2ebbaca3bf3f651e5 /mesh/node.c
parent2614f2b7324bb9a3b0fa727a2ce2d86340a32a47 (diff)
downloadbluez-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.c3
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;
}