Got another segmentation fault on chicken and egg issue. Now,
it is necessary to check device pointer.
---
plugins/wifi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/wifi.c b/plugins/wifi.c
index f5af702..bdb4c24 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -182,7 +182,7 @@ static struct wifi_data *get_pending_wifi_data(const char
*ifname)
const char *dev_name;
wifi = list->data;
- if (!wifi)
+ if (!wifi || !wifi->device)
continue;
dev_name = connman_device_get_string(wifi->device, "Interface");
--
1.9.1
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman