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 05f4f1c098 Trivial optimisation. Also fixes highly theoretical 
concurrency issue.
05f4f1c098 is described below

commit 05f4f1c0985c18dac91797449df0455ae6922426
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Sep 17 07:37:08 2025 +0100

    Trivial optimisation. Also fixes highly theoretical concurrency issue.
---
 java/org/apache/catalina/realm/UserDatabaseRealm.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/catalina/realm/UserDatabaseRealm.java 
b/java/org/apache/catalina/realm/UserDatabaseRealm.java
index 0b85e12eb6..6b89a83fc2 100644
--- a/java/org/apache/catalina/realm/UserDatabaseRealm.java
+++ b/java/org/apache/catalina/realm/UserDatabaseRealm.java
@@ -219,7 +219,7 @@ public class UserDatabaseRealm extends RealmBase {
                                 
containerLog.error(sm.getString("userDatabaseRealm.noNamingContext"));
                                 return null;
                             }
-                            context = getServer().getGlobalNamingContext();
+                            context = server.getGlobalNamingContext();
                         }
                         database = (UserDatabase) context.lookup(resourceName);
                     } catch (Throwable t) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to