From 27909c1864a4ae5e983ab6d932fdb015edf894c5 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Fri, 17 Dec 2010 15:21:27 +0100 Subject: [PATCH] ipconfig: Fix IPv6 config reference count initialization It should be set to 1 when created. --- src/ipconfig.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ipconfig.c b/src/ipconfig.c index 3c0579d..527ca5f 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; -- 2.7.4