summaryrefslogtreecommitdiff
path: root/src/nm-manager.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-04-11 17:35:23 +0200
committerThomas Haller <thaller@redhat.com>2018-04-18 07:55:15 +0200
commit1a33ab17de3ad2d9afe409295b7fd393c013f863 (patch)
tree7678edc9da17a0451081c3308f16c7ad56b2dad1 /src/nm-manager.c
parent580a11da3a5ea8b56e7714e3ebb34eb4149a456d (diff)
downloadNetworkManager-1a33ab17de3ad2d9afe409295b7fd393c013f863.tar.gz
core: downgrade assertion to nm_assert()
It can be easily verified, that these assertions should not ever fail. Disable in production builds.
Diffstat (limited to 'src/nm-manager.c')
-rw-r--r--src/nm-manager.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nm-manager.c b/src/nm-manager.c
index f5b9ac723d..a4156fa2a7 100644
--- a/src/nm-manager.c
+++ b/src/nm-manager.c
@@ -4243,9 +4243,9 @@ validate_activation_request (NMManager *self,
NMAuthSubject *subject = NULL;
char *error_desc = NULL;
- g_assert (connection);
- g_assert (out_device);
- g_assert (out_vpn);
+ nm_assert (NM_IS_CONNECTION (connection));
+ nm_assert (out_device);
+ nm_assert (out_vpn);
/* Validate the caller */
subject = nm_auth_subject_new_unix_process_from_context (context);