summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2010-08-03 21:09:31 (GMT)
committerSamuel Ortiz <sameo@linux.intel.com>2010-08-03 22:20:49 (GMT)
commit658d55c9257338e26ea89cd72ef5113be97bdaa5 (patch)
tree470d7a1d651036a1584aa355219b0d9ac3b152a8
parent0029c2ecea7899800a9238ab90b561bc54d83f02 (diff)
downloadconnman-658d55c9257338e26ea89cd72ef5113be97bdaa5.zip
connman-658d55c9257338e26ea89cd72ef5113be97bdaa5.tar.gz
connman-658d55c9257338e26ea89cd72ef5113be97bdaa5.tar.bz2
Return when VPN ip setting fails
-rw-r--r--src/provider.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/provider.c b/src/provider.c
index 9a30e1f..e061098 100644
--- a/src/provider.c
+++ b/src/provider.c
@@ -237,6 +237,7 @@ static int set_connected(struct connman_provider *provider,
struct connman_element *element;
char *nameservers = NULL, *name = NULL;
const char *value;
+ int err;
type = CONNMAN_ELEMENT_TYPE_IPV4;
@@ -264,11 +265,14 @@ static int set_connected(struct connman_provider *provider,
g_free(nameservers);
g_free(name);
- if (connman_provider_setup_vpn_ipv4(provider, element) < 0) {
+ err = connman_provider_setup_vpn_ipv4(provider, element);
+ if (err < 0) {
connman_element_unref(element);
__connman_service_indicate_state(service,
CONNMAN_SERVICE_STATE_FAILURE);
+
+ return err;
}
__connman_service_indicate_state(service,