summary refs log tree commit diff
path: root/src/nmcli/settings.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2023-08-09 21:56:59 +0200
committerMichael Biebl <biebl@debian.org>2023-08-09 21:56:59 +0200
commitb1206f287e4fae1f9a7e29ec0dc11b54d726a7f8 (patch)
treecc1d62cd21f10b2375c76484b5e2187f1e75f010 /src/nmcli/settings.c
parenta6d4d07b23485507f30ddb1ce99f5c82428714c8 (diff)
parent05e4a733f2141995181a551854d5df929f084adf (diff)
Update upstream source from tag 'upstream/1.44.0'
Update to upstream version '1.44.0'
with Debian dir e69e19b54914190e7696747b3e0508f95977f387
Diffstat (limited to 'src/nmcli/settings.c')
-rw-r--r--src/nmcli/settings.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/nmcli/settings.c b/src/nmcli/settings.c
index 3c1f3c38..5b818edb 100644
--- a/src/nmcli/settings.c
+++ b/src/nmcli/settings.c
@@ -254,7 +254,7 @@ wireless_band_channel_changed_cb(GObject *object, GParamSpec *pspec, gpointer us
 }
 
 static void
-connection_master_changed_cb(GObject *object, GParamSpec *pspec, gpointer user_data)
+connection_controller_changed_cb(GObject *object, GParamSpec *pspec, gpointer user_data)
 {
     NMSettingConnection *s_con      = NM_SETTING_CONNECTION(object);
     NMConnection        *connection = NM_CONNECTION(user_data);
@@ -343,7 +343,7 @@ nmc_setting_connection_connect_handlers(NMSettingConnection *setting, NMConnecti
 
     g_signal_connect(setting,
                      "notify::" NM_SETTING_CONNECTION_MASTER,
-                     G_CALLBACK(connection_master_changed_cb),
+                     G_CALLBACK(connection_controller_changed_cb),
                      connection);
 }
 
@@ -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);
@@ -495,7 +498,7 @@ _env_get_env_flags(const NMMetaEnvironment *environment, gpointer environment_us
 
     nm_assert(nmc);
 
-    return (nmc->offline ? NM_META_ENV_FLAGS_OFFLINE : NM_META_ENV_FLAGS_NONE);
+    return (nmc->nmc_config.offline ? NM_META_ENV_FLAGS_OFFLINE : NM_META_ENV_FLAGS_NONE);
 }
 
 /*****************************************************************************/