From: Pasi Sjöholm <pasi.sjoh...@jollamobile.com>

If ipv6 address leased from dhcpv6 server somehow gets expired
it needs to be removed from the interface and not to be left
in place.
---
 src/network.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/network.c b/src/network.c
index d3ad83b..3fac525 100644
--- a/src/network.c
+++ b/src/network.c
@@ -594,6 +594,8 @@ static void autoconf_ipv6_set(struct connman_network 
*network)
        if (!ipconfig)
                return;
 
+       __connman_ipconfig_address_remove(ipconfig);
+
        index = __connman_ipconfig_get_index(ipconfig);
 
        connman_network_ref(network);
-- 
1.9.1

_______________________________________________
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman

Reply via email to