mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-27 01:10:42 +01:00
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:
parent
a6944e157b
commit
79407f0c37
1 changed files with 4 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue