This was necessary, because of connection errors when using:
"xxx.yyy.com//CACHE/sdesktop/install/binaries/sfinst"
FIXME: this should be implemented in a more generic way!
Signed-off-by: Adam Piątyszek <ediap@users.sourceforge.net>
if (vpninfo->csd_token && vpninfo->csd_ticket && vpninfo->csd_starturl && vpninfo->csd_waiturl) {
/* First, redirect to the stuburl -- we'll need to fetch and run that */
free(vpninfo->urlpath);
- vpninfo->urlpath = strdup(vpninfo->csd_stuburl);
+ vpninfo->urlpath = strdup(vpninfo->csd_stuburl +
+ (vpninfo->csd_stuburl[0] == '/' ? 1 : 0));
ret = 0;
goto out;
}
free(vpninfo->csd_stuburl);
vpninfo->csd_stuburl = NULL;
- vpninfo->urlpath = strdup(vpninfo->csd_waiturl);
+ vpninfo->urlpath = strdup(vpninfo->csd_waiturl +
+ (vpninfo->csd_waiturl[0] == '/' ? 1 : 0));
vpninfo->csd_waiturl = NULL;
return 0;
}