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

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


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

commit 7fc0c90b69cf3b1afc76d1856194e38ad491484b
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 35d35ce534..94a4078f40 100644
--- a/java/org/apache/catalina/realm/JAASMemoryLoginModule.java
+++ b/java/org/apache/catalina/realm/JAASMemoryLoginModule.java
@@ -238,7 +238,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