summaryrefslogtreecommitdiff
path: root/src/ipconfig.c
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2010-12-17 15:21:27 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2010-12-17 15:21:27 +0100
commit27909c1864a4ae5e983ab6d932fdb015edf894c5 (patch)
tree9a9a7fc7e61b3887bc8cf4b1e0114e791a905d69 /src/ipconfig.c
parent64f14f3d11e04456697c58ca3368f73c9d6c7387 (diff)
downloadconnman-27909c1864a4ae5e983ab6d932fdb015edf894c5.tar.gz
connman-27909c1864a4ae5e983ab6d932fdb015edf894c5.tar.bz2
connman-27909c1864a4ae5e983ab6d932fdb015edf894c5.zip
ipconfig: Fix IPv6 config reference count initialization
It should be set to 1 when created.
Diffstat (limited to 'src/ipconfig.c')
-rw-r--r--src/ipconfig.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ipconfig.c b/src/ipconfig.c
index 3c0579d8..527ca5f2 100644
--- a/src/ipconfig.c
+++ b/src/ipconfig.c
@@ -848,6 +848,8 @@ static struct connman_ipconfig *create_ipv6config(int index)
if (ipv6config == NULL)
return NULL;
+ ipv6config->refcount = 1;
+
ipv6config->index = index;
ipv6config->type = CONNMAN_IPCONFIG_TYPE_IPV6;
ipv6config->method = CONNMAN_IPCONFIG_METHOD_OFF;