Currently, one of the return paths in __connman_network_set_ipconfig
returns FALSE, inconsistently with its function signature return type
of 'int'.
This patch returns the error code specified in 'ret'.
---
src/network.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/network.c b/src/network.c
index e7ae5d6..123857e 100644
--- a/src/network.c
+++ b/src/network.c
@@ -1176,7 +1176,7 @@ int __connman_network_set_ipconfig(struct connman_network
*network,
if (ret != 0) {
connman_network_set_error(network,
CONNMAN_NETWORK_ERROR_ASSOCIATE_FAIL);
- return FALSE;
+ return ret;
}
break;
case CONNMAN_IPCONFIG_METHOD_DHCP:
--
1.7.5
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman