Hi Mohamed,

On Thu, Jan 27, 2011 at 08:53:21PM -0800, Mohamed Abbas wrote:
> @@ -168,13 +171,14 @@ static int location_detect(struct connman_location 
> *location)
>       g_web_set_user_agent(data->web, "ConnMan/%s", VERSION);
>       g_web_set_close_connection(data->web, TRUE);
>  
> -     err = connman_proxy_lookup(interface, STATUS_URL,
> -                                     proxy_callback, location);
> -     if (err < 0)
> -             goto done;
> +     service = connman_location_get_service(location);
> +     data->token = connman_proxy_lookup(interface, STATUS_URL,
> +                                     service, proxy_callback, location);
>  
> -     connman_location_ref(location);
We still want to refcount the location.

Cheers,
Samuel.

-- 
Intel Open Source Technology Centre
http://oss.intel.com/
_______________________________________________
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman

Reply via email to