mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-20 10:52:33 +01:00
wiphy: Return an error if agent request fails
If there is no agent registered, then the caller should not be hanging without a response forever.
This commit is contained in:
parent
141a1831c0
commit
842eb643eb
@ -338,6 +338,10 @@ static struct l_dbus_message *network_connect(struct l_dbus *dbus,
|
|||||||
network->object_path,
|
network->object_path,
|
||||||
passphrase_callback,
|
passphrase_callback,
|
||||||
network);
|
network);
|
||||||
|
|
||||||
|
if (!network->agent_request)
|
||||||
|
return dbus_error_no_agent(message);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user