mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 03:40:07 +01:00
cli: fix offline mode for parsing "connection.secondaries"
$ nmcli --offline connection add type ethernet con-name x connection.secondaries foo (process:48855): nm-CRITICAL **: 09:16:03.051: nm_client_get_connections: assertion 'NM_IS_CLIENT(client)' failed ** nm:ERROR:src/nmcli/common.c:437:nmc_find_connection: assertion failed: (connections) Bail out! nm:ERROR:src/nmcli/common.c:437:nmc_find_connection: assertion failed: (connections) Aborted (core dumped)
This commit is contained in:
parent
1b26315a1f
commit
30a6742d96
1 changed files with 3 additions and 0 deletions
|
|
@ -366,6 +366,9 @@ _set_fcn_precheck_connection_secondaries(NMClient *client,
|
|||
if (!strv0)
|
||||
return TRUE;
|
||||
|
||||
if (!client)
|
||||
return TRUE;
|
||||
|
||||
connections = nm_client_get_connections(client);
|
||||
|
||||
strv = g_strdupv((char **) strv0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue