This prevent to get a former valid IP in a new connection.
---
 src/peer.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/peer.c b/src/peer.c
index 99252f9..6d3f460 100644
--- a/src/peer.c
+++ b/src/peer.c
@@ -84,6 +84,7 @@ static void stop_dhcp_server(struct connman_peer *peer)
        if (peer->ip_pool)
                __connman_ippool_unref(peer->ip_pool);
        peer->ip_pool = NULL;
+       peer->lease_ip = 0;
 }
 
 static void dhcp_server_debug(const char *str, void *data)
-- 
2.0.5

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

Reply via email to