From 79407f0c37acbf2585adbec096069ef5745e41b3 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 16 Oct 2013 12:58:08 -0400 Subject: [PATCH] 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. --- src/settings/nm-settings-connection.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/settings/nm-settings-connection.c b/src/settings/nm-settings-connection.c index 2cd2f0d0ae..2726912f79 100644 --- a/src/settings/nm-settings-connection.c +++ b/src/settings/nm-settings-connection.c @@ -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,