[PATCH] dhcp: Return true if network not available

2014-08-04 Thread Guoqiang Liu
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


Re: [PATCH] dhcp: Return true if network not available

2014-08-04 Thread Tomasz Bursztyka

ACK from me.

Thank you

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


Re: [PATCH] dhcp: Return true if network not available

2014-08-04 Thread Patrik Flykt
On Mon, 2014-08-04 at 16:57 +0800, Guoqiang Liu wrote:
> 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.

Applied, thanks.

Patrik

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