From 415fe803e52ed2b6a566ad425178051f76357284 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Tue, 15 Aug 2017 17:24:40 +0100 Subject: [PATCH] Heckle gpst_obtain_cookie() Signed-off-by: David Woodhouse --- auth-globalprotect.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/auth-globalprotect.c b/auth-globalprotect.c index ca6748cb..2618f3e1 100644 --- a/auth-globalprotect.c +++ b/auth-globalprotect.c @@ -381,6 +381,8 @@ int gpst_obtain_cookie(struct openconnect_info *vpninfo) /* first try handling it as a gateway, then a portal */ result = gpst_login(vpninfo, 0); if (result == -EEXIST) { + /* XX: Don't we want to start by trying the same username/password the user just + entered for the 'gateway' attempt? */ result = gpst_login(vpninfo, 1); if (result == -EEXIST) vpn_progress(vpninfo, PRG_ERR, _("Server is neither a GlobalProtect portal nor a gateway.\n")); -- 2.49.0