Commit 7a5974a5 authored by Daniel Lenski's avatar Daniel Lenski
Browse files

ignore failure in downloading CSD stub if CSD wrapper is specified

Resolves the issue reported here:

Basically, what's happened here is that the Cisco VPN admins have
misconfigured things so that they require running CSD on all platforms, but
the CSD “stub” script specified for Linux _doesn't actually exist_.  (They
probably only tested with Mac, Windows, and Android… and never considered
Linux clients.)

That said, the absence of the CSD stub *doesn't even matter* for those who
are running a recent version of ``, which entirely sidesteps
running the server provided stub and binaries.

Long story short: This patch makes OpenConnect not fail if the CSD stub
can't be downloaded… as long as a CSD wrapper script was specified.

Signed-off-by: Daniel Lenski's avatarDaniel Lenski <>
parent f74755c7
......@@ -1383,8 +1383,14 @@ newgroup:
buflen = do_https_request(vpninfo, "GET", NULL, NULL, &form_buf, 0);
if (buflen <= 0) {
result = -EINVAL;
goto out;
if (vpninfo->csd_wrapper) {
vpn_progress(vpninfo, PRG_ERR,
_("Couldn't fetch CSD stub. Proceeding anyway with CSD wrapper script.\n"));
buflen = 0;
} else {
result = -EINVAL;
goto out;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment