summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-06-08 13:12:49 +0200
committerThomas Haller <thaller@redhat.com>2016-06-13 10:51:16 +0200
commitf39c985cc88cb5ef37550339fb3fc7c41b8e812b (patch)
tree3ae23a53c5833cbe56a112e57e6a8bec93482c7b
parent67e6cb58f899d5ff0859c00f21e36f8b597b6b8c (diff)
downloadnetwork-manager-applet-f39c985cc88cb5ef37550339fb3fc7c41b8e812b.tar.gz
c-e: don't assert for existing plugin in vpn_supports_ipv6()
-rw-r--r--src/connection-editor/vpn-helpers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/connection-editor/vpn-helpers.c b/src/connection-editor/vpn-helpers.c
index 838450af..5031d83f 100644
--- a/src/connection-editor/vpn-helpers.c
+++ b/src/connection-editor/vpn-helpers.c
@@ -332,7 +332,8 @@ vpn_supports_ipv6 (NMConnection *connection)
g_return_val_if_fail (service_type != NULL, FALSE);
plugin = vpn_get_plugin_by_service (service_type);
- g_return_val_if_fail (plugin != NULL, FALSE);
+ if (!plugin)
+ return FALSE;
capabilities = nm_vpn_editor_plugin_get_capabilities (plugin);
return (capabilities & NM_VPN_EDITOR_PLUGIN_CAPABILITY_IPV6) != 0;