core: downgrade assertion to nm_assert()

It can be easily verified, that these assertions should not ever fail.
Disable in production builds.
This commit is contained in:
Thomas Haller 2018-04-11 17:35:23 +02:00
parent 580a11da3a
commit 1a33ab17de

View file

@ -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);