tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r940057 - /tomcat/trunk/java/org/apache/catalina/realm/RealmBase.java
Date Sat, 01 May 2010 15:44:34 GMT
Author: markt
Date: Sat May  1 15:44:33 2010
New Revision: 940057

URL: http://svn.apache.org/viewvc?rev=940057&view=rev
Log:
Make md volatile to be sure there are no threading issues

Modified:
    tomcat/trunk/java/org/apache/catalina/realm/RealmBase.java

Modified: tomcat/trunk/java/org/apache/catalina/realm/RealmBase.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/realm/RealmBase.java?rev=940057&r1=940056&r2=940057&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/realm/RealmBase.java (original)
+++ tomcat/trunk/java/org/apache/catalina/realm/RealmBase.java Sat May  1 15:44:33 2010
@@ -112,7 +112,7 @@ public abstract class RealmBase extends 
     /**
      * The MessageDigest object for digesting user credentials (passwords).
      */
-    protected MessageDigest md = null;
+    protected volatile MessageDigest md = null;
 
 
     /**



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


Mime
View raw message