changeset 13776:a44331c37c67

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