changeset 55639:4722e5e28449

8227381: GSS login fails with PREAUTH_FAILED Reviewed-by: xuelei
author weijun
date Wed, 10 Jul 2019 09:43:34 +0800
parents 430a51e86f28
children 3081f39a3d30
files src/java.security.jgss/share/classes/sun/security/krb5/KrbAsReqBuilder.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;