mesh: Clear node's agent pointer after agent removal
authorInga Stotland <inga.stotland@intel.com>
Thu, 11 Feb 2021 02:55:58 +0000 (18:55 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:34 +0000 (19:08 +0530)
commit8f14a603d73ec7ce60383e21c816b742506cecd9
tree9e6b628ad0344c9210d4b688428289b26051bd82
parentd84187e8b71fb71677ad06f914a0da3e734020c3
mesh: Clear node's agent pointer after agent removal

When a node is created/provisioned/imported, the new node's agent
is removed. The corresponding pointer in the node structure needs
to be set to NULL to avoid pointing to freed memory.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
mesh/node.c