The device can disappear if network is disconnected while setting
autoconf parameters.
---
 src/network.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/network.c b/src/network.c
index c0e6024..e010aaa 100644
--- a/src/network.c
+++ b/src/network.c
@@ -1027,6 +1027,9 @@ static void autoconf_ipv6_set(struct connman_network 
*network)
 
        DBG("network %p", network);
 
+       if (network->device == NULL)
+               return;
+
        __connman_device_set_network(network->device, network);
 
        connman_device_set_disconnected(network->device, FALSE);
-- 
1.7.1

_______________________________________________
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman

Reply via email to