core: be strict about connection argument in D-Bus methods
[NetworkManager.git] / src / settings / nm-settings.c
index fc2daa0..77e45f4 100644 (file)
@@ -1408,7 +1408,8 @@ impl_settings_add_connection_helper (NMSettings *self,
        GError *error = NULL;
 
        connection = _nm_simple_connection_new_from_dbus (settings,
-                                                         NM_SETTING_PARSE_FLAGS_NORMALIZE,
+                                                           NM_SETTING_PARSE_FLAGS_STRICT
+                                                         | NM_SETTING_PARSE_FLAGS_NORMALIZE,
                                                          &error);
 
        if (connection) {