diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2010-12-17 15:21:27 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-12-17 15:21:27 +0100 |
commit | 27909c1864a4ae5e983ab6d932fdb015edf894c5 (patch) | |
tree | 9a9a7fc7e61b3887bc8cf4b1e0114e791a905d69 /src/ipconfig.c | |
parent | 64f14f3d11e04456697c58ca3368f73c9d6c7387 (diff) | |
download | connman-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.c | 2 |
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; |