about summary refs log tree commit diff
path: root/src/NetworkManagerUtils.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2018-09-08 17:44:52 +0200
committerMichael Biebl <biebl@debian.org>2018-09-08 17:44:52 +0200
commitd8cad4490d54acb162ad218a8a682ab379bb8bcc (patch)
tree140abd545d62a1b0144be27c93ad8edb021e4311 /src/NetworkManagerUtils.c
parente3bc109cd0eb97346c448f591af518d85dbee21b (diff)
parent8f7a3cbbdd0c0a48277c341dd3a8ec8743ae9735 (diff)
Update upstream source from tag 'upstream/1.13.90'
Update to upstream version '1.13.90'
with Debian dir d7d3d98e1240df49343a72511602da7099232e10
Diffstat (limited to 'src/NetworkManagerUtils.c')
-rw-r--r--src/NetworkManagerUtils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/NetworkManagerUtils.c b/src/NetworkManagerUtils.c
index a3bd6013..1404854d 100644
--- a/src/NetworkManagerUtils.c
+++ b/src/NetworkManagerUtils.c
@@ -805,9 +805,11 @@ nm_utils_match_connection (NMConnection *const*connections,
 		return NULL;
 
 	for (; *connections; connections++) {
-		NMConnection *candidate = NM_CONNECTION (*connections);
+		NMConnection *candidate = *connections;
 		GHashTable *diffs = NULL;
 
+		nm_assert (NM_IS_CONNECTION (candidate));
+
 		if (match_filter_func) {
 			if (!match_filter_func (candidate, match_filter_data))
 				continue;