From 25a962a76ba8be143577b688e4e244faebd72b03 Mon Sep 17 00:00:00 2001 From: Daniel Lenski Date: Wed, 28 Aug 2019 16:18:39 -0700 Subject: [PATCH] GlobalProtect login bugfix: reversed condition where portal form should be retried on gateway I broke this in 3e91f7bf Signed-off-by: Daniel Lenski --- auth-globalprotect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth-globalprotect.c b/auth-globalprotect.c index 0b8f19f6..91c12157 100644 --- a/auth-globalprotect.c +++ b/auth-globalprotect.c @@ -542,7 +542,7 @@ static int gpst_login(struct openconnect_info *vpninfo, int portal, struct login * unless it was a challenge auth form or alt-secret form. */ portal = 0; - if (ctx->form->auth_id[0] == '_' && ctx->alt_secret) { + if (ctx->form->auth_id[0] == '_' && !ctx->alt_secret) { blind_retry = 1; goto replay_form; } -- 2.50.1