[NetworkManager-fortisslvpn] service: one less assert
- From: Lubomir Rintel <lkundrak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [NetworkManager-fortisslvpn] service: one less assert
- Date: Tue, 2 Apr 2019 08:39:23 +0000 (UTC)
commit e8e9db8eb5cdc5ea1239eeaa2ee50c00a92e3389
Author: Lubomir Rintel <lkundrak v3 sk>
Date: Tue Apr 2 10:35:32 2019 +0200
service: one less assert
src/nm-fortisslvpn-service.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/nm-fortisslvpn-service.c b/src/nm-fortisslvpn-service.c
index 4da810e..8449bc4 100644
--- a/src/nm-fortisslvpn-service.c
+++ b/src/nm-fortisslvpn-service.c
@@ -376,7 +376,7 @@ real_connect (NMVpnServicePlugin *plugin, NMConnection *connection, GError **err
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
s_vpn = NM_SETTING_VPN (nm_connection_get_setting (connection, NM_TYPE_SETTING_VPN));
- g_assert (s_vpn);
+ g_return_val_if_fail (NM_IS_SETTING_VPN (s_vpn), FALSE);
if (!nm_fortisslvpn_properties_validate (s_vpn, error))
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]