The DHCP cleanup function which removes the network hash in dhcp.c,
must be done after the network cleanup. Otherwise we would have removed
the necessary information from dhcp.c:network_table hash and network.c
would not be able to stop currently active DHCP connections when ConnMan
is shutdown.
---
 src/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main.c b/src/main.c
index 1469063..4f635de 100644
--- a/src/main.c
+++ b/src/main.c
@@ -693,7 +693,6 @@ int main(int argc, char *argv[])
        __connman_wispr_cleanup();
        __connman_wpad_cleanup();
        __connman_dhcpv6_cleanup();
-       __connman_dhcp_cleanup();
        __connman_session_cleanup();
        __connman_plugin_cleanup();
        __connman_provider_cleanup();
@@ -717,6 +716,7 @@ int main(int argc, char *argv[])
        __connman_ippool_cleanup();
        __connman_device_cleanup();
        __connman_network_cleanup();
+       __connman_dhcp_cleanup();
        __connman_service_cleanup();
        __connman_peer_cleanup();
        __connman_agent_cleanup();
-- 
1.8.3.1

_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to