Add missing access check.
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 25 Apr 2008 17:40:47 +0000 (17:40 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 25 Apr 2008 17:40:47 +0000 (17:40 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@651662 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/threads/ThreadWithAttributes.java

index 0940b37..b3c89f0 100644 (file)
@@ -96,6 +96,7 @@ public class ThreadWithAttributes extends Thread {
      * you can use notes for array access.
      */
     public final Hashtable getAttributes(Object control) {
+        if( this.control != control ) return null;
         return attributes;
     }
 }