summaryrefslogtreecommitdiff
path: root/src/nm-manager.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-06-20 15:45:34 +0200
committerThomas Haller <thaller@redhat.com>2019-06-26 12:26:11 +0200
commitd1f269ab36ea5e06e54658ca1b06daf83639a585 (patch)
tree9beeae87491ca4a551f716b47f6e6fe3e99e873a /src/nm-manager.c
parent6d4592354fc118ff7206cfc672a04c07022fe78c (diff)
downloadNetworkManager-d1f269ab36ea5e06e54658ca1b06daf83639a585.tar.gz
core: ensure normalized connection during add-and-activate
nm_connection_verify() returns success for fully valid (normalized) connections and also connections that are NM_SETTING_VERIFY_NORMALIZABLE. We really want to fully normalize the profiles during add-and-activate.
Diffstat (limited to 'src/nm-manager.c')
-rw-r--r--src/nm-manager.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nm-manager.c b/src/nm-manager.c
index 9dfc84c979..d653dc174a 100644
--- a/src/nm-manager.c
+++ b/src/nm-manager.c
@@ -5517,6 +5517,8 @@ impl_manager_add_and_activate_connection (NMDBusObject *obj,
goto error;
}
+ nm_assert (_nm_connection_verify (incompl_conn, NULL) == NM_SETTING_VERIFY_SUCCESS);
+
active = _new_active_connection (self,
is_vpn,
NULL,