summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-03-15 09:16:13 +0100
committerThomas Haller <thaller@redhat.com>2020-03-15 09:16:19 +0100
commitb7e171c1f7e4067000b7e4d050471847de964ea7 (patch)
tree28c618ad4a649c88d4f73ee8f8bc802dd60f5310
parent6b07b40c46a64a5b50eefcc73c06de94a867a370 (diff)
downloadNetworkManager-b7e171c1f7e4067000b7e4d050471847de964ea7.tar.gz
libnm: fix nm_vpn_plugin_info_list_find_service_type()
Of course, having no list does not mean we cannot resolve the service-type. That is, because we also have a hard-coded list of known VPNs. Fixes: 67c00353d367 ('libnm: reuse _list_find_by_service() for searching NMVpnPluginInfo')
-rw-r--r--libnm-core/nm-vpn-plugin-info.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libnm-core/nm-vpn-plugin-info.c b/libnm-core/nm-vpn-plugin-info.c
index 96f64d0b73..68fe523887 100644
--- a/libnm-core/nm-vpn-plugin-info.c
+++ b/libnm-core/nm-vpn-plugin-info.c
@@ -628,8 +628,6 @@ nm_vpn_plugin_info_list_find_service_type (GSList *list, const char *name)
g_return_val_if_reached (NULL);
if (!*name)
return NULL;
- if (!list)
- return NULL;
/* First, try to interpret @name as a full service-type (or alias). */
info = _list_find_by_service (list, NULL, name);