From: Guoqiang Liu
Here give a true return value as P2P doesn't care about network,
but P2P DHCP client need to do ipconfig if DHCP successful.
---
src/dhcp.c |3 +++
1 file changed, 3 insertions(+)
diff --git a/src/dhcp.c b/src/dhcp.c
index 132b787..d714f99 100644
--- a/src/dhcp.c
+++ b/src/dhcp.c
@@ -314,6 +314,9 @@ static bool apply_lease_available_on_network(GDHCPClient
*dhcp_client,
int ns_entries;
int i;
+ if (!dhcp->network)
+ return true;
+
service = connman_service_lookup_from_network(dhcp->network);
if (!service) {
connman_error("Can not lookup service");
--
1.7.9.5
___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman