Commit: 18e137db73e2ae6d307e62ac8430f7326efdb0c3
Parent: 6ea1b038eedeca31c3796ac921e25509d48d70ec
Author: Inga Stotland <inga.stotland@intel.com>
Committer: Brian Gix <brian.gix@intel.com>
Date: 2020-07-21 19:00:47
Tree: 08cc0c122f1cf558593806968a1f1174be458a97

tools/mesh-cfgclient: Fix segfault on remote node reset This fixes a segfault that is caused by freeeing non-allocated memory. Happens upon the removal of a remote node when remote's net key and/or app key queues are destroyed. __GI___libc_free (mem=0x1) at malloc.c:3102 destroy=destroy@entry=0x55761f63a3b0 <l_free>) at ell/queue.c:107 destroy=destroy@entry=0x55761f63a3b0 <l_free>) at ell/queue.c:82 at tools/mesh/remote.c:140 at tools/mesh/cfgcli.c:764 at tools/mesh/cfgcli.c:764 msg=0x5576213aa6f0, user_data=<optimized out>) at tools/mesh-cfgclient.c:1522 dbus=dbus@entry=0x55762132f860, message=message@entry=0x5576213aa6f0) at ell/dbus-service.c:1793 user_data=0x55762132f860) at ell/dbus.c:285 user_data=0x55762132f940) at ell/io.c:126

Diffstat

M tools/mesh/remote.c | 5 +++- -

1 files changed, 3 insertions(+), 2 deletions(-)

View Full Diff | Patch