harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r993086 - /harmony/enhanced/java/branches/omd/classlib/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLSessionContextImpl.java
Date Mon, 06 Sep 2010 16:33:55 GMT
Author: odeakin
Date: Mon Sep  6 16:33:55 2010
New Revision: 993086

URL: http://svn.apache.org/viewvc?rev=993086&view=rev
Log:
Null the SessionContext when removing a session from the cache.

Modified:
    harmony/enhanced/java/branches/omd/classlib/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLSessionContextImpl.java

Modified: harmony/enhanced/java/branches/omd/classlib/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLSessionContextImpl.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/omd/classlib/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLSessionContextImpl.java?rev=993086&r1=993085&r2=993086&view=diff
==============================================================================
--- harmony/enhanced/java/branches/omd/classlib/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLSessionContextImpl.java
(original)
+++ harmony/enhanced/java/branches/omd/classlib/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLSessionContextImpl.java
Mon Sep  6 16:33:55 2010
@@ -128,7 +128,8 @@ public class SSLSessionContextImpl imple
             // The list is ordered. Since we always add to the end of it, 
             // the element at index 0 will be the oldest
             IdKey id = keys.remove(0);
-            sessions.remove(id);
+            SSLSessionImpl session = sessions.remove(id);
+            session.context = null;
         }
     }
     



Mime
View raw message