Skip to content

Commit

Permalink
Avoid retrying without XML POST when we didn't even manage to connect
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 Jul 18, 2014
1 parent b485379 commit 1599822
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion http.c
Expand Up @@ -960,7 +960,11 @@ static int do_https_request(struct openconnect_info *vpninfo, const char *method
_("Failed to open HTTPS connection to %s\n"),
vpninfo->hostname);
buf_free(buf);
return result;
/* We really don't want to return -EINVAL if we have
failed to even connect to the server, because if
we do that openconnect_obtain_cookie() might try
again without XMLPOST... with the same result. */
return -EIO;
}
}

Expand Down
1 change: 1 addition & 0 deletions www/changelog.xml
Expand Up @@ -15,6 +15,7 @@
<ul>
<li><b>OpenConnect HEAD</b>
<ul>
<li>Avoid retrying without XML POST, when we failed to even reach the server.</li>
<li>Fix off-by-one in parameter substitution in error messages.</li>
<li>Improve reporting when GSSAPI auth requested but not compiled in.</li>
<li>Fix parsing of split include routes on Windows.</li>
Expand Down

0 comments on commit 1599822

Please sign in to comment.