summaryrefslogtreecommitdiff
path: root/vpn
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2013-03-25 14:38:44 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-03-27 13:20:31 (GMT)
commit458ef68f7c01b5b4735848547212a34e2030578d (patch)
tree7f988075928cd300f685438cf065c35e8d4d24a3 /vpn
parent9fa8782303d9a16816cf1c7033c7883f203ac8eb (diff)
downloadconnman-458ef68f7c01b5b4735848547212a34e2030578d.zip
connman-458ef68f7c01b5b4735848547212a34e2030578d.tar.gz
connman-458ef68f7c01b5b4735848547212a34e2030578d.tar.bz2
vpn-provider: Fix uninitialized memory read
The immutable field might be left uninitialized without this.
Diffstat (limited to 'vpn')
-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 bb89ccf..de3931f 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;