service: When indicating error, also indicate IPv6 state as failed
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 9 Aug 2011 07:59:16 +0000 (10:59 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 9 Aug 2011 10:16:34 +0000 (12:16 +0200)
Set IPv6 ipconfig state to failure in __connman_service_indicate_error().
The return value of the function isn't used for any practical purposes,
therefore always return 0.

src/service.c

index 08cbd0b..7c0bf4d 100644 (file)
@@ -3632,9 +3632,13 @@ int __connman_service_indicate_error(struct connman_service *service,
        if (service->error == CONNMAN_SERVICE_ERROR_INVALID_KEY)
                __connman_service_set_passphrase(service, NULL);
 
-       return __connman_service_ipconfig_indicate_state(service,
+       __connman_service_ipconfig_indicate_state(service,
                                                CONNMAN_SERVICE_STATE_FAILURE,
                                                CONNMAN_IPCONFIG_TYPE_IPV4);
+       __connman_service_ipconfig_indicate_state(service,
+                                               CONNMAN_SERVICE_STATE_FAILURE,
+                                               CONNMAN_IPCONFIG_TYPE_IPV6);
+       return 0;
 }
 
 int __connman_service_clear_error(struct connman_service *service)