about summary refs log tree commit diff
path: root/src/nmcli/settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nmcli/settings.c')
-rw-r--r--src/nmcli/settings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nmcli/settings.c b/src/nmcli/settings.c
index d6691125..636df466 100644
--- a/src/nmcli/settings.c
+++ b/src/nmcli/settings.c
@@ -261,7 +261,7 @@ connection_controller_changed_cb(GObject *object, GParamSpec *pspec, gpointer us
     NMSetting           *s_ipv4, *s_ipv6;
     const char          *value, *tmp_str;
 
-    value = nm_setting_connection_get_master(s_con);
+    value = nm_setting_connection_get_controller(s_con);
     if (value) {
         s_ipv4 = nm_connection_get_setting_by_name(connection, NM_SETTING_IP4_CONFIG_SETTING_NAME);
         s_ipv6 = nm_connection_get_setting_by_name(connection, NM_SETTING_IP6_CONFIG_SETTING_NAME);