Skip to content

Commit

Permalink
Add FIXME in start_cstp_connection()
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Jun 19, 2014
1 parent fe34f4d commit 82b7efb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cstp.c
Expand Up @@ -208,6 +208,8 @@ static int start_cstp_connection(struct openconnect_info *vpninfo)
vpninfo->ssl_write(vpninfo, reqbuf->data, reqbuf->pos);
buf_free(reqbuf);

/* FIXME: Use process_http_response() instead of reimplementing it. It has
a header callback function, and can cope with CONNECT requests. */
if ((i = vpninfo->ssl_gets(vpninfo, buf, 65536)) < 0) {
if (i == -EINTR)
return i;
Expand Down

0 comments on commit 82b7efb

Please sign in to comment.