summaryrefslogtreecommitdiff
path: root/vpn/vpn-provider.c
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2013-03-25 16:38:44 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-03-27 15:20:31 +0200
commit458ef68f7c01b5b4735848547212a34e2030578d (patch)
tree7f988075928cd300f685438cf065c35e8d4d24a3 /vpn/vpn-provider.c
parent9fa8782303d9a16816cf1c7033c7883f203ac8eb (diff)
downloadconnman-458ef68f7c01b5b4735848547212a34e2030578d.tar.gz
connman-458ef68f7c01b5b4735848547212a34e2030578d.tar.bz2
connman-458ef68f7c01b5b4735848547212a34e2030578d.zip
vpn-provider: Fix uninitialized memory read
The immutable field might be left uninitialized without this.
Diffstat (limited to 'vpn/vpn-provider.c')
-rw-r--r--vpn/vpn-provider.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vpn/vpn-provider.c b/vpn/vpn-provider.c
index bb89ccf9..de3931f7 100644
--- a/vpn/vpn-provider.c
+++ b/vpn/vpn-provider.c
@@ -2139,7 +2139,7 @@ static int set_string(struct vpn_provider *provider,
return -EPERM;
}
- setting = g_try_new(struct vpn_setting, 1);
+ setting = g_try_new0(struct vpn_setting, 1);
if (setting == NULL)
return -ENOMEM;