Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Reinstate compatibility with test server hack
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Feb 4, 2013
1 parent dc7684d commit 67e0f82
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions http.c
Expand Up @@ -388,6 +388,7 @@ static int process_http_response(struct openconnect_info *vpninfo, int *result,
if (!closeconn) {
vpn_progress(vpninfo, PRG_ERR,
_("Cannot receive HTTP 1.0 body without closing connection\n"));
openconnect_close_https(vpninfo, 0);
return -EINVAL;
}

Expand Down Expand Up @@ -989,6 +990,10 @@ int openconnect_obtain_cookie(struct openconnect_info *vpninfo)
free(form_buf);
return result;
}
if (form->action) {
vpninfo->redirect_url = strdup(form->action);
handle_redirect(vpninfo);
}
}

/* Step 4: Run the CSD trojan, if applicable */
Expand Down

0 comments on commit 67e0f82

Please sign in to comment.