Network unreference is already being done by free_network,
called by g_hash_table_remove. This patche prevents from
an invalid read during nework removal.
---
 plugins/ethernet.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/plugins/ethernet.c b/plugins/ethernet.c
index b8e52ce..aa1153b 100644
--- a/plugins/ethernet.c
+++ b/plugins/ethernet.c
@@ -128,7 +128,6 @@ static void remove_network(struct connman_device *device,
                return;
 
        connman_device_remove_network(device, ethernet->network);
-       connman_network_unref(ethernet->network);
 
        ethernet->network = NULL;
 }
-- 
1.8.3.2

_______________________________________________
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman

Reply via email to