diff options
author | Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> | 2011-10-10 13:09:11 +0300 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-10-11 12:04:43 +0200 |
commit | 3276fc5f3743940177cfa112a7a90a61ac9547fe (patch) | |
tree | 9f8ed0adb05afe13e653bf6ef206d3563f2144ef /src/wispr.c | |
parent | 4b100f588b7078a85e7ede97dfc0de5ea9370068 (diff) | |
download | connman-3276fc5f3743940177cfa112a7a90a61ac9547fe.tar.gz connman-3276fc5f3743940177cfa112a7a90a61ac9547fe.tar.bz2 connman-3276fc5f3743940177cfa112a7a90a61ac9547fe.zip |
wispr: Set LoginRequired when wispr login is requested
Setting it while handling redirection is not bullet proof in case
of AP which does not implement well wispr and sends wispr content
with no redirection at first place.
Fixes BMC#23424
Diffstat (limited to 'src/wispr.c')
-rw-r--r-- | src/wispr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wispr.c b/src/wispr.c index 1f470f7c..7cc2b99e 100644 --- a/src/wispr.c +++ b/src/wispr.c @@ -482,6 +482,8 @@ static gboolean wispr_manage_message(GWebResult *result, wp_context->wispr_result = CONNMAN_WISPR_RESULT_LOGIN; + __connman_service_request_login(wp_context->service); + if (__connman_agent_request_login_input(wp_context->service, wispr_portal_request_wispr_login, wp_context) != -EIO) @@ -570,8 +572,6 @@ static gboolean wispr_portal_web_result(GWebResult *result, gpointer user_data) DBG("Redirect URL: %s", redirect); - __connman_service_request_login(wp_context->service); - wp_context->request_id = g_web_request_get(wp_context->web, redirect, wispr_portal_web_result, wp_context); |