settings: normalize and verify connections on update

When a connection is updated (either by its plugin or via D-Bus), we
need to normalize and verify it before accepting the changes.
This commit is contained in:
Dan Winship 2013-10-16 12:58:08 -04:00
parent a6944e157b
commit 79407f0c37

View file

@ -431,6 +431,10 @@ nm_settings_connection_replace_settings (NMSettingsConnection *self,
priv = NM_SETTINGS_CONNECTION_GET_PRIVATE (self);
nm_utils_normalize_connection (new_connection, TRUE);
if (!nm_connection_verify (new_connection, error))
return FALSE;
/* Do nothing if there's nothing to update */
if (nm_connection_compare (NM_CONNECTION (self),
new_connection,