Applied On Fri, 2019-12-06 at 09:43 +0530, Anurag Biradar wrote: > list entry was not updated properly during flushing of packets > > <call stack> > flush_pkt_list (list=0x638b40 <net+64>) at tools/mesh-gatt/net.c:1199 > net_session_close (data_in=<optimized out>) at tools/mesh-gatt/net.c:1979 > disconnect_device (cb=cb@entry=0x0, user_data=user_data@entry=0x0) > at tools/meshctl.c:791 > cmd_start_prov (argc=<optimized out>, argv=0x6a9fb0) > at tools/meshctl.c:1789 > --- > tools/mesh-gatt/net.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/mesh-gatt/net.c b/tools/mesh-gatt/net.c > index e8171c6..d74e1f5 100644 > --- a/tools/mesh-gatt/net.c > +++ b/tools/mesh-gatt/net.c > @@ -1197,6 +1197,7 @@ static void flush_pkt_list(GList **list) > pkt = l->data; > *list = g_list_remove(*list, pkt); > g_free(pkt); > + l = g_list_first(*list); > } > } >