Parent: 37bbe30c92a729a4f819fde349443ce07a23cf93
Author: Inga Stotland <istotlan@ingas-xps13.amr.corp.intel.com>
Committer: Brian Gix <brian.gix@intel.com>
Date: 2019-10-05 18:53:50
Tree: 1a430a7eebdba77a77e097db954ef7dd6b08194f
mesh: Fix segmentation fault on Join() call This fixes the following segfault: node_init_cb (node=0x0, agent=0x0) at mesh/mesh.c:359 reply = dbus_error(join_pending->msg, MESH_ERROR_FAILED, user_data=0x5555555be170) at mesh/node.c:1760 dbus=<optimized out>) at ell/dbus.c:216 user_data=0x5555555a6e00) at ell/dbus.c:279 user_data=0x5555555a7ef0) at ell/io.c:126 at ell/main.c:642 at mesh/main.c:205 The fault was caused by the premature deletion of preserved state. This moves setup of disconnect watch for the application calling the Join() method into the node_init_cb(), after a temporary node has been successfully created.
Diffstat
| M | mesh/mesh.c | | | 7 | +++++- - |
1 files changed, 5 insertions(+), 2 deletions(-)