提交 089e5060 编写于 作者: W weijun

6716534: Krb5LoginModule has not cleaned temp info between authentication attempts

Reviewed-by: valeriep
上级 33bd0a98
/* /*
* 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -1145,6 +1145,10 @@ public class Krb5LoginModule implements LoginModule { ...@@ -1145,6 +1145,10 @@ public class Krb5LoginModule implements LoginModule {
sharedState.put(NAME, username); sharedState.put(NAME, username);
sharedState.put(PWD, password); sharedState.put(PWD, password);
} }
} else {
// remove temp results for the next try
encKeys = null;
principal = null;
} }
username = null; username = null;
password = null; password = null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册