8227381: GSS login fails with PREAUTH_FAILED
authorweijun
Wed, 10 Jul 2019 09:43:34 +0800
changeset 55639 4722e5e28449
parent 55638 430a51e86f28
child 55640 3081f39a3d30
8227381: GSS login fails with PREAUTH_FAILED Reviewed-by: xuelei
src/java.security.jgss/share/classes/sun/security/krb5/KrbAsReqBuilder.java
--- a/src/java.security.jgss/share/classes/sun/security/krb5/KrbAsReqBuilder.java	Wed Jul 10 09:43:34 2019 +0800
+++ b/src/java.security.jgss/share/classes/sun/security/krb5/KrbAsReqBuilder.java	Wed Jul 10 09:43:34 2019 +0800
@@ -367,6 +367,8 @@
                     paList = kerr.getPA();  // Update current paList
                 } else {
                     if (referralsState.handleError(ke)) {
+                        pakey = null;
+                        preAuthFailedOnce = false;
                         continue;
                     }
                     throw ke;