When we jump back to 'cont' it needs to fetch the next response line,
not just check the existing contents of the buffer (which will be an
empty line).
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
int http10 = 0, closeconn = 0;
int i;
+ cont:
if (openconnect_SSL_gets(vpninfo->https_ssl, buf, sizeof(buf)) < 0) {
vpninfo->progress(vpninfo, PRG_ERR, "Error fetching HTTPS response\n");
return -EINVAL;
}
- cont:
if (!strncmp(buf, "HTTP/1.0 ", 9)) {
http10 = 1;
closeconn = 1;