3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 21:22:37 +01:00

device: fix incomplete variable replacement

This commit is contained in:
Tim Kourt 2018-07-13 09:35:41 -07:00 committed by Denis Kenzior
parent 22e5ba2133
commit d83dda410d

View File

@ -2164,8 +2164,7 @@ static bool device_hidden_network_scan_results(uint32_t wiphy_id,
return false; return false;
} }
if (!l_dbus_message_get_arguments(device->connect_pending, "s", if (!l_dbus_message_get_arguments(msg, "s", &ssid)) {
&ssid)) {
dbus_pending_reply(&msg, dbus_error_invalid_args(msg)); dbus_pending_reply(&msg, dbus_error_invalid_args(msg));
return false; return false;
} }
@ -2205,7 +2204,7 @@ next:
network = network_psk ? : network_open; network = network_psk ? : network_open;
network_connect_new_hidden_network(network, device->connect_pending); network_connect_new_hidden_network(network, msg);
l_dbus_message_unref(msg); l_dbus_message_unref(msg);
return true; return true;