diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-05-08 17:08:23 +0200 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2012-05-09 17:13:57 +0300 |
commit | c7293b647bba1bedf986cf8df2c1d77fcbed3f09 (patch) | |
tree | b9bbe3f1bba0e3316c577b0ccb00b6c459dc9813 | |
parent | 6d6f312fb2b751b4cf7037f2a526c7785364732f (diff) | |
download | connman-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.
-rw-r--r-- | plugins/ofono.c | 2 |
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; |