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

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


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

commit a8a72de1a32b0f8d38835a39a513390340766cfd
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 a10956018e..5ede590c04 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("No CallbackHandler specified");
         }
-        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