6716534: Krb5LoginModule has not cleaned temp info between authentication attempts
authorweijun
Fri, 20 Jun 2008 12:05:02 +0800
changeset 793 8183c2b0985f
parent 792 214933bde360
child 794 2ba8b05f177a
6716534: Krb5LoginModule has not cleaned temp info between authentication attempts Reviewed-by: valeriep
jdk/src/share/classes/com/sun/security/auth/module/Krb5LoginModule.java
--- a/jdk/src/share/classes/com/sun/security/auth/module/Krb5LoginModule.java	Thu Jun 19 14:20:43 2008 -0400
+++ b/jdk/src/share/classes/com/sun/security/auth/module/Krb5LoginModule.java	Fri Jun 20 12:05:02 2008 +0800
@@ -1,5 +1,5 @@
 /*
- * Copyright 2000-2006 Sun Microsystems, Inc.  All Rights Reserved.
+ * Copyright 2000-2008 Sun Microsystems, Inc.  All Rights Reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -1145,6 +1145,10 @@
                 sharedState.put(NAME, username);
                 sharedState.put(PWD, password);
             }
+        } else {
+            // remove temp results for the next try
+            encKeys = null;
+            principal = null;
         }
         username = null;
         password = null;