]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
GlobalProtect login bugfix: reversed condition where portal form should be retried...
authorDaniel Lenski <dlenski@gmail.com>
Wed, 28 Aug 2019 23:18:39 +0000 (16:18 -0700)
committerDaniel Lenski <dlenski@gmail.com>
Wed, 28 Aug 2019 23:23:04 +0000 (16:23 -0700)
I broke this in 3e91f7bf

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
auth-globalprotect.c

index 0b8f19f640f8a3b61ef914ce6706d501300fcb11..91c12157367813d27f80c9c85919ab31cb556c3e 100644 (file)
@@ -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;
                                }