summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2012-05-08 17:08:23 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-05-09 17:13:57 +0300
commitc7293b647bba1bedf986cf8df2c1d77fcbed3f09 (patch)
treeb9bbe3f1bba0e3316c577b0ccb00b6c459dc9813 /plugins
parent6d6f312fb2b751b4cf7037f2a526c7785364732f (diff)
downloadconnman-c7293b647bba1bedf986cf8df2c1d77fcbed3f09.tar.gz
connman-c7293b647bba1bedf986cf8df2c1d77fcbed3f09.tar.bz2
connman-c7293b647bba1bedf986cf8df2c1d77fcbed3f09.zip
oFono: Initialize prefix_length
We could end up calling connman_ipaddress_set_ipv6() withouth prefix_lenght initialized. Reported by hdante.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ofono.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ofono.c b/plugins/ofono.c
index 0dfadb86..f65d78a6 100644
--- a/plugins/ofono.c
+++ b/plugins/ofono.c
@@ -834,7 +834,7 @@ static void extract_ipv6_settings(DBusMessageIter *array,
{
DBusMessageIter dict;
char *address = NULL, *gateway = NULL;
- unsigned char prefix_length;
+ unsigned char prefix_length = 0;
char *nameservers = NULL;
const char *interface = NULL;
int index = -1;