From 0cf59dd120ba1fee9f80ba840429af6e0af3d171 Mon Sep 17 00:00:00 2001 From: Inga Stotland Date: Wed, 17 Apr 2019 21:13:06 -0700 Subject: [PATCH] mesh: Fix network information cleanup This fixes issues caused by accessing invalidated entries of nets queue that were left around when removing network info in mesh_net_detach() --- mesh/net.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mesh/net.c b/mesh/net.c index b173e1c09..9b1fbd81e 100644 --- a/mesh/net.c +++ b/mesh/net.c @@ -3120,6 +3120,7 @@ struct mesh_io *mesh_net_detach(struct mesh_net *net) mesh_io_deregister_recv_cb(io, MESH_IO_FILTER_NET); net->io = NULL; + l_queue_remove(nets, net); return io; } -- 2.47.3