This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.1.x by this push:
     new b9d3b397cd Fix bug in RFC 7616 updates identified by SpotBugs
b9d3b397cd is described below

commit b9d3b397cde152b3148107edb68754ce4402b9ef
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Mar 23 14:26:19 2023 +0000

    Fix bug in RFC 7616 updates identified by SpotBugs
---
 java/org/apache/catalina/realm/JAASMemoryLoginModule.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/catalina/realm/JAASMemoryLoginModule.java 
b/java/org/apache/catalina/realm/JAASMemoryLoginModule.java
index 75f3677d99..0c2c6aa5e6 100644
--- a/java/org/apache/catalina/realm/JAASMemoryLoginModule.java
+++ b/java/org/apache/catalina/realm/JAASMemoryLoginModule.java
@@ -239,7 +239,7 @@ public class JAASMemoryLoginModule extends MemoryRealm 
implements LoginModule {
         if (callbackHandler == null) {
             throw new 
LoginException(sm.getString("jaasMemoryLoginModule.noCallbackHandler"));
         }
-        Callback callbacks[] = new Callback[9];
+        Callback callbacks[] = new Callback[10];
         callbacks[0] = new NameCallback("Username: ");
         callbacks[1] = new PasswordCallback("Password: ", false);
         callbacks[2] = new TextInputCallback("nonce");


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to