summaryrefslogtreecommitdiff
path: root/vpn
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2013-01-08 11:57:03 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-01-08 13:01:51 (GMT)
commit3a7ad9492e309484908136aef7e47dd337b20079 (patch)
treed00be5ecb88849d189fa4dfb00fb12ba43f295bf /vpn
parentc13aad78bce6fb17f44519b798d14b836e8244b1 (diff)
downloadconnman-3a7ad9492e309484908136aef7e47dd337b20079.zip
connman-3a7ad9492e309484908136aef7e47dd337b20079.tar.gz
connman-3a7ad9492e309484908136aef7e47dd337b20079.tar.bz2
vpn-provider: Check if providers list is NULL before using it
Diffstat (limited to 'vpn')
-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 4c9fa15..56a9c51 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)