service: Set the user connect status correctly for VPN
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Wed, 24 Aug 2011 14:01:58 +0000 (17:01 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 12 Sep 2011 09:40:46 +0000 (11:40 +0200)
If the userconnect is not set, then informatation about authentication
errors cannot be reported by agent API.

src/service.c

index ed38413..dfefe99 100644 (file)
@@ -5560,6 +5560,7 @@ __connman_service_create_from_provider(struct connman_provider *provider)
        service->type = CONNMAN_SERVICE_TYPE_VPN;
        service->provider = connman_provider_ref(provider);
        service->autoconnect = FALSE;
+       service->userconnect = TRUE;
 
        service->state_ipv4 = service->state_ipv6 = CONNMAN_SERVICE_STATE_IDLE;