summaryrefslogtreecommitdiff
path: root/vpn/vpn-provider.c
diff options
context:
space:
mode:
Diffstat (limited to 'vpn/vpn-provider.c')
-rw-r--r--vpn/vpn-provider.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/vpn/vpn-provider.c b/vpn/vpn-provider.c
index 4c9fa159..56a9c511 100644
--- a/vpn/vpn-provider.c
+++ b/vpn/vpn-provider.c
@@ -1595,6 +1595,9 @@ static void provider_create_all_from_type(const char *provider_type)
providers = __connman_storage_get_providers();
+ if (providers == NULL)
+ return;
+
for (i = 0; providers[i] != NULL; i+=1) {
if (strncmp(providers[i], "provider_", 9) != 0)