DBG("task %p", task);
+ if (task->path == NULL)
+ return 0;
+
#if 0
if (task->created == FALSE) {
connman_device_set_powered(task->device, FALSE);
DBG("task %p", task);
- if (task->netpath == NULL)
+ if (task->netpath == NULL || task->path == NULL)
return -EINVAL;
message = dbus_message_new_method_call(SUPPLICANT_NAME, task->path,
DBG("task %p", task);
+ if (task->path == NULL)
+ return -EINVAL;
+
message = dbus_message_new_method_call(SUPPLICANT_NAME, task->path,
SUPPLICANT_INTF ".Interface", "disconnect");
if (message == NULL)