Navigation Menu

Skip to content

Commit

Permalink
asprintf() returns -1 on error
Browse files Browse the repository at this point in the history
Fixes the bugs reported on the mailing list and Ubuntu tracker…

- http://lists.infradead.org/pipermail/openconnect-devel/2018-December/005164.html "Failed to obtain WebVPN cookie introduced by f08767d"
- https://bugs.launchpad.net/bugs/1809839 "[Bug 1809839] [NEW] Daily build 2667 broken for protocol=GP"
  • Loading branch information
dlenski committed Dec 27, 2018
1 parent f08767d commit de95285
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth-globalprotect.c
Expand Up @@ -458,7 +458,7 @@ static int gpst_login(struct openconnect_info *vpninfo, int portal, struct login
/* submit prelogin request to get form */
orig_path = vpninfo->urlpath;
if (asprintf(&vpninfo->urlpath, "%s/prelogin.esp?tmp=tmp&clientVer=4100&clientos=%s",
portal ? "global-protect" : "ssl-vpn", clientos)) {
portal ? "global-protect" : "ssl-vpn", clientos) < 0) {
result = -ENOMEM;
goto out;
}
Expand Down

0 comments on commit de95285

Please sign in to comment.