mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 14:20: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:45fc268890https://bugzilla.gnome.org/show_bug.cgi?id=767987 (cherry picked from commitbf7b9c60b6)
This commit is contained in:
parent
696becf0d9
commit
cca92be83c
1 changed files with 2 additions and 0 deletions
|
|
@ -1716,6 +1716,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