summaryrefslogtreecommitdiff
path: root/libnm/nm-device.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnm/nm-device.c')
-rw-r--r--libnm/nm-device.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/libnm/nm-device.c b/libnm/nm-device.c
index 28747e1c12..ab3c5d4e8d 100644
--- a/libnm/nm-device.c
+++ b/libnm/nm-device.c
@@ -2331,6 +2331,9 @@ nm_device_reapply_finish (NMDevice *device,
* Returns: (transfer full): a %NMConnection with the currently applied settings
* or %NULL on error.
*
+ * The connection is as received from D-Bus and might not validate according
+ * to nm_connection_verify().
+ *
* Since: 1.2
**/
NMConnection *
@@ -2357,7 +2360,7 @@ nm_device_get_applied_connection (NMDevice *device,
return NULL;
}
- connection = nm_simple_connection_new_from_dbus (dict, error);
+ connection = _nm_simple_connection_new_from_dbus (dict, NM_SETTING_PARSE_FLAGS_BEST_EFFORT, error);
if (!connection)
return NULL;
@@ -2399,7 +2402,7 @@ device_get_applied_connection_cb (GObject *proxy,
goto out;
}
- connection = nm_simple_connection_new_from_dbus (dict, &error);
+ connection = _nm_simple_connection_new_from_dbus (dict, NM_SETTING_PARSE_FLAGS_BEST_EFFORT, &error);
if (!connection) {
g_simple_async_result_take_error (simple, error);
goto out;
@@ -2459,6 +2462,9 @@ nm_device_get_applied_connection_async (NMDevice *device,
* Returns: (transfer full): a currently applied %NMConnection or %NULL in case
* of error.
*
+ * The connection is as received from D-Bus and might not validate according
+ * to nm_connection_verify().
+ *
* Since: 1.2
**/
NMConnection *