connman_wifi_load_ssid() can return NULL. Best not to dereference that.
This fixes Meego's bug #3787.
connman_device_set_powered(task->device, TRUE);
connman_device_set_powered(task->device, TRUE);
+ dbus_message_unref(reply);
+
+ dbus_pending_call_unref(call);
+
hex_ssids = connman_wifi_load_ssid();
hex_ssids = connman_wifi_load_ssid();
+ if (hex_ssids == NULL)
+ return;
for (i = 0; hex_ssids[i]; i++) {
unsigned char *ssid;
for (i = 0; hex_ssids[i]; i++) {
unsigned char *ssid;
- dbus_message_unref(reply);
-
- dbus_pending_call_unref(call);
-