mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 23:50:16 +01:00
cli: initialize connection list in do_device_connect()
The connection list may be required in nmc_secrets_requested() if
secrets are needed.
Fixes: 45fc268890
https://bugzilla.gnome.org/show_bug.cgi?id=767987
This commit is contained in:
parent
f2d5c8d7f8
commit
bf7b9c60b6
1 changed files with 2 additions and 0 deletions
|
|
@ -1796,6 +1796,8 @@ do_device_connect (NmCli *nmc, int argc, char **argv)
|
|||
nmc->nowait_flag = (nmc->timeout == 0);
|
||||
nmc->should_wait++;
|
||||
|
||||
nmc->connections = nm_client_get_connections (nmc->client);
|
||||
|
||||
/* Create secret agent */
|
||||
nmc->secret_agent = nm_secret_agent_simple_new ("nmcli-connect");
|
||||
if (nmc->secret_agent)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue